<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>BackgroundGeolocation | React Native Background Geolocation</title>
	<meta name="description" content="Documentation for React Native Background Geolocation">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<link rel="shortcut icon" class="favicon" href="../assets/images/favicon.ico">
	<script src="../assets/js/search.js"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell left">
					<div class="brand">
						<a class="logo" href="https://www.transistorsoft.com"><img src="../assets/images/transistor-logo-bw.svg" /></a>
						<span class="title">
							<a href="/react-native-background-geolocation">[API Docs] React Native Background Geolocation</a>&nbsp;<span class="tsd-flag ts-flagOptional ts-flagVersion">v 4.18.0</span>
						</span>
					</div>
				</div>
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading"></li>
						<li class="state failure">The search index is not available</li>
					</ul>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../index.html">React Native Background Geolocation</a>
				</li>
				<li>
					<a href="backgroundgeolocation.html">BackgroundGeolocation</a>
				</li>
			</ul>
			<h1>Class BackgroundGeolocation</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-9 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p>Primary API of the SDK.</p>
					</div>
					<dl class="tsd-comment-tags">
						<dt class="tsd-comment-tag-break">break</dt>
						<dd>
							<a href="#📚-help" id="📚-help" style="color: inherit; text-decoration: none;">
								<h2>📚 Help</h2>
							</a>
							<ul>
								<li>📘 <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Philosophy-of-Operation">Philosophy of Operation</a></li>
								<li>📘 <a href="../interfaces/httpevent.html">HTTP Guide</a>.</li>
								<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a>.</li>
								<li>📘 <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Android-Headless-Mode">Android Headless Mode</a>.</li>
								<li>📘 <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Debugging">Debugging Guide</a>.</li>
							</ul>
							<a href="#⚡️-events" id="⚡️-events" style="color: inherit; text-decoration: none;">
								<h2>⚡️ Events</h2>
							</a>
							<p><a href="backgroundgeolocation.html">BackgroundGeolocation</a> is event-based.  Interacting with the SDK is largely through implementing listeners on the following events:</p>
							<table>
								<thead>
									<tr>
										<th>Method</th>
										<th>Description</th>
									</tr>
								</thead>
								<tbody><tr>
										<td><a href="backgroundgeolocation.html#onlocation">onLocation</a></td>
										<td>Fired with each recorded <a href="../interfaces/location.html">Location</a></td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onmotionchange">onMotionChange</a></td>
										<td>Fired when the plugin changes state between <em>moving</em> / <em>stationary</em></td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onhttp">onHttp</a></td>
										<td>Fired with each HTTP response from your server.  (see <a href="../interfaces/config.html#url">Config.url</a>).</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onactivitychange">onActivityChange</a></td>
										<td>Fired with each change in device motion-activity.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onproviderchange">onProviderChange</a></td>
										<td>Fired after changes to device location-services configuration.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onheartbeat">onHeartbeat</a></td>
										<td>Periodic timed events.  See <a href="../interfaces/config.html#heartbeatinterval">heartbeatInterval</a>.  iOS requires <a href="../interfaces/config.html#preventsuspend">preventSuspend</a>.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#ongeofence">onGeofence</a></td>
										<td>Fired with each <a href="../interfaces/geofence.html">Geofence</a> transition event (<code>ENTER, EXIT, DWELL</code>).</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#ongeofenceschange">onGeofencesChange</a></td>
										<td>Fired when the list of actively-monitored geofences changed.  See <a href="../interfaces/config.html#geofenceproximityradius">geofenceProximityRadius</a>.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onschedule">onSchedule</a></td>
										<td>Fired for <a href="../interfaces/config.html#schedule">schedule</a> events.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onconnectivitychange">onConnectivityChange</a></td>
										<td>Fired when network-connectivity changes (connected / disconnected).</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onpowersavechange">onPowerSaveChange</a></td>
										<td>Fired when state of operating-system&#39;s &quot;power-saving&quot; feature is enabled / disabled.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onenabledchange">onEnabledChange</a></td>
										<td>Fired when the plugin is enabled / disabled via its <a href="backgroundgeolocation.html#start">start</a> / <a href="backgroundgeolocation.html#stop">stop</a> methods.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onauthorization">onAuthorization</a></td>
										<td>Fired when a response from <a href="../interfaces/authorization.html#refreshurl">Authorization.refreshUrl</a> is received.</td>
									</tr>
									<tr>
										<td><a href="backgroundgeolocation.html#onnotificationaction">onNotificationAction</a></td>
										<td><strong>Android only</strong>: Fired when a button is clicked on a custom <a href="../interfaces/notification.html#layout">Notification.layout</a> of a foreground-service notification.</td>
									</tr>
							</tbody></table>
							<a href="#🔧-config-api" id="🔧-config-api" style="color: inherit; text-decoration: none;">
								<h2>🔧 <a href="../interfaces/config.html">Config</a> API</h2>
							</a>
							<p><a href="backgroundgeolocation.html">BackgroundGeolocation</a> is highly configurable.  See the <a href="../interfaces/config.html">Config</a> API for more information.</p>
							<p>There are three main steps to using <code>BackgroundGeolocation</code></p>
							<ol>
								<li>Wire up event-listeners.</li>
								<li><a href="backgroundgeolocation.html#ready">ready</a> the SDK.</li>
								<li><a href="backgroundgeolocation.html#start">start</a> tracking.</li>
							</ol>
						</dd>
						<dt class="tsd-comment-tag-example">example</dt>
						<dd><pre><code class="language-typescript">
<span style="color: #88846F">////</span>
<span style="color: #88846F">// 1.  Wire up event-listeners</span>
<span style="color: #88846F">//</span>

<span style="color: #88846F">// This handler fires whenever bgGeo receives a location update.</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onLocation</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[location] &quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">}, </span><span style="color: #FD971F">error</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[location] ERROR: &quot;</span><span style="color: #F8F8F2">, error);</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #88846F">// This handler fires when movement states changes (stationary-&gt;moving; moving-&gt;stationary)</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onMotionChange</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[motionchange] &quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #88846F">// This handler fires on HTTP responses</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onHttp</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">response</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[http] &quot;</span><span style="color: #F8F8F2">, response);</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #88846F">// This event fires when a change in motion activity is detected</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onActivityChange</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">activityEvent</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[activitychange] &quot;</span><span style="color: #F8F8F2">, activityEvent);</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #88846F">// This event fires when the user toggles location-services authorization</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onProviderChange</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">providerEvent</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[providerchange] &quot;</span><span style="color: #F8F8F2">, providerEvent);</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #88846F">////</span>
<span style="color: #88846F">// 2.  Execute #ready method (required)</span>
<span style="color: #88846F">//</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Geolocation Config</span>
<span style="color: #F8F8F2">  desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,</span>
<span style="color: #F8F8F2">  distanceFilter: </span><span style="color: #AE81FF">10</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Activity Recognition</span>
<span style="color: #F8F8F2">  stopTimeout: </span><span style="color: #AE81FF">1</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Application config</span>
<span style="color: #F8F8F2">  debug: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">,              </span><span style="color: #88846F">// &lt;-- enable this hear debug sounds.</span>
<span style="color: #F8F8F2">  logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,</span>
<span style="color: #F8F8F2">  stopOnTerminate: </span><span style="color: #AE81FF">false</span><span style="color: #F8F8F2">,   </span><span style="color: #88846F">// &lt;-- Allow the background-service to continue tracking when app terminated.</span>
<span style="color: #F8F8F2">  startOnBoot: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">,        </span><span style="color: #88846F">// &lt;-- Auto start tracking when device is powered-up.</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// HTTP / SQLite config</span>
<span style="color: #F8F8F2">  url: </span><span style="color: #E6DB74">&quot;http://yourserver.com/locations&quot;</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  batchSync: </span><span style="color: #AE81FF">false</span><span style="color: #F8F8F2">,       </span><span style="color: #88846F">// &lt;-- Set true to sync locations to server in a single HTTP request.</span>
<span style="color: #F8F8F2">  autoSync: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">,         </span><span style="color: #88846F">// &lt;-- Set true to sync each location to server as it arrives.</span>
<span style="color: #F8F8F2">  headers: {              </span><span style="color: #88846F">// &lt;-- Optional HTTP headers</span>
<span style="color: #F8F8F2">    </span><span style="color: #E6DB74">&quot;X-FOO&quot;</span><span style="color: #F8F8F2">: </span><span style="color: #E6DB74">&quot;bar&quot;</span>
<span style="color: #F8F8F2">  },</span>
<span style="color: #F8F8F2">  params: {               </span><span style="color: #88846F">// &lt;-- Optional HTTP params</span>
<span style="color: #F8F8F2">    </span><span style="color: #E6DB74">&quot;auth_token&quot;</span><span style="color: #F8F8F2">: </span><span style="color: #E6DB74">&quot;maybe_your_server_authenticates_via_token_YES?&quot;</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">}, (</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- BackgroundGeolocation is configured and ready: &quot;</span><span style="color: #F8F8F2">, state.enabled);</span>

<span style="color: #F8F8F2">  </span><span style="color: #F92672">if</span><span style="color: #F8F8F2"> (</span><span style="color: #F92672">!</span><span style="color: #F8F8F2">state.enabled) {</span>
<span style="color: #F8F8F2">    </span><span style="color: #88846F">////</span>
<span style="color: #F8F8F2">    </span><span style="color: #88846F">// 3. Start tracking!</span>
<span style="color: #F8F8F2">    </span><span style="color: #88846F">//</span>
<span style="color: #F8F8F2">    BackgroundGeolocation.</span><span style="color: #A6E22E">start</span><span style="color: #F8F8F2">(</span><span style="color: #66D9EF">function</span><span style="color: #F8F8F2">() {</span>
<span style="color: #F8F8F2">      console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- Start success&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">    });</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>

</code></pre>
						</dd>
						<dt class="tsd-comment-tag-example">example</dt>
						<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  distanceFilter: </span><span style="color: #AE81FF">10</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  stopOnTerminate: </span><span style="color: #AE81FF">false</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,</span>
<span style="color: #F8F8F2">  debug: </span><span style="color: #AE81FF">true</span>
<span style="color: #F8F8F2">}, (</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- BackgroundGeolocation is ready: &quot;</span><span style="color: #F8F8F2">, state);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
							<a href="#⚠️-warning" id="⚠️-warning" style="color: inherit; text-decoration: none;">
								<h3>⚠️ Warning:</h3>
							</a>
							<p>Do not execute <em>any</em> API method which will require accessing location-services until the callback to <a href="backgroundgeolocation.html#ready">ready</a> executes (eg: <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a>, <a href="backgroundgeolocation.html#watchposition">watchPosition</a>, <a href="backgroundgeolocation.html#start">start</a>).</p>
							<a href="#promise-api" id="promise-api" style="color: inherit; text-decoration: none;">
								<h3>Promise API</h3>
							</a>
							<p>The <code>BackgroundGeolocation</code> Javascript API supports <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promises</a> for <em>nearly</em> every method (the exceptions are <a href="backgroundgeolocation.html#watchposition">watchPosition</a> and adding event-listeners via <strong><code>#onEventName</code></strong> methods.)</p>
						</dd>
						<dt class="tsd-comment-tag-example">example</dt>
						<dd><pre><code class="language-typescript"><span style="color: #88846F">// Traditional API still works:</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({desiredAccuracy: </span><span style="color: #AE81FF">0</span><span style="color: #F8F8F2">, distanceFilter: </span><span style="color: #AE81FF">50</span><span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- BackgroundGeolocation is ready: &quot;</span><span style="color: #F8F8F2">, state);</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">catch</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">error</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- BackgroundGeolocation error: &quot;</span><span style="color: #F8F8F2">, error);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
						</dd>
					</dl>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">BackgroundGeolocation</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Constructors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="backgroundgeolocation.html#constructor" class="tsd-kind-icon">constructor</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Events</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onactivitychange" class="tsd-kind-icon">on<wbr>Activity<wbr>Change</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onconnectivitychange" class="tsd-kind-icon">on<wbr>Connectivity<wbr>Change</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onenabledchange" class="tsd-kind-icon">on<wbr>Enabled<wbr>Change</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#ongeofence" class="tsd-kind-icon">on<wbr>Geofence</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#ongeofenceschange" class="tsd-kind-icon">on<wbr>Geofences<wbr>Change</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onheartbeat" class="tsd-kind-icon">on<wbr>Heartbeat</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onhttp" class="tsd-kind-icon">on<wbr>Http</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onlocation" class="tsd-kind-icon">on<wbr>Location</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onmotionchange" class="tsd-kind-icon">on<wbr>Motion<wbr>Change</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onpowersavechange" class="tsd-kind-icon">on<wbr>Power<wbr>Save<wbr>Change</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onproviderchange" class="tsd-kind-icon">on<wbr>Provider<wbr>Change</a></li>
								<li class="tsd-kind-event tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onschedule" class="tsd-kind-icon">on<wbr>Schedule</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#accuracy_authorization_full" class="tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>FULL</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#accuracy_authorization_reduced" class="tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>REDUCED</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#activity_type_airborne" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AIRBORNE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#activity_type_automotive_navigation" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AUTOMOTIVE_<wbr>NAVIGATION</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#activity_type_fitness" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>FITNESS</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#activity_type_other" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#activity_type_other_navigation" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER_<wbr>NAVIGATION</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#authorization_status_always" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>ALWAYS</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#authorization_status_denied" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>DENIED</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#authorization_status_not_determined" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>NOT_<wbr>DETERMINED</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#authorization_status_restricted" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>RESTRICTED</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#authorization_status_when_in_use" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>WHEN_<wbr>IN_<wbr>USE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#desired_accuracy_high" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>HIGH</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#desired_accuracy_low" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOW</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#desired_accuracy_lowest" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOWEST</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#desired_accuracy_medium" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>MEDIUM</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#desired_accuracy_navigation" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>NAVIGATION</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#desired_accuracy_very_low" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>VERY_<wbr>LOW</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_activitychange" class="tsd-kind-icon">EVENT_<wbr>ACTIVITYCHANGE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_authorization" class="tsd-kind-icon">EVENT_<wbr>AUTHORIZATION</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_boot" class="tsd-kind-icon">EVENT_<wbr>BOOT</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_connectivitychange" class="tsd-kind-icon">EVENT_<wbr>CONNECTIVITYCHANGE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_enabledchange" class="tsd-kind-icon">EVENT_<wbr>ENABLEDCHANGE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_geofence" class="tsd-kind-icon">EVENT_<wbr>GEOFENCE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_geofenceschange" class="tsd-kind-icon">EVENT_<wbr>GEOFENCESCHANGE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_heartbeat" class="tsd-kind-icon">EVENT_<wbr>HEARTBEAT</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_http" class="tsd-kind-icon">EVENT_<wbr>HTTP</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_location" class="tsd-kind-icon">EVENT_<wbr>LOCATION</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_motionchange" class="tsd-kind-icon">EVENT_<wbr>MOTIONCHANGE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_notificationaction" class="tsd-kind-icon">EVENT_<wbr>NOTIFICATIONACTION</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_powersavechange" class="tsd-kind-icon">EVENT_<wbr>POWERSAVECHANGE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_providerchange" class="tsd-kind-icon">EVENT_<wbr>PROVIDERCHANGE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_schedule" class="tsd-kind-icon">EVENT_<wbr>SCHEDULE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#event_terminate" class="tsd-kind-icon">EVENT_<wbr>TERMINATE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#log_level_debug" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>DEBUG</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#log_level_error" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>ERROR</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#log_level_info" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>INFO</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#log_level_off" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>OFF</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#log_level_verbose" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>VERBOSE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#log_level_warning" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>WARNING</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#notification_priority_default" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>DEFAULT</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#notification_priority_high" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>HIGH</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#notification_priority_low" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>LOW</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#notification_priority_max" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MAX</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#notification_priority_min" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MIN</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#persist_mode_all" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>ALL</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#persist_mode_geofence" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>GEOFENCE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#persist_mode_location" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>LOCATION</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#persist_mode_none" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>NONE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#devicesettings" class="tsd-kind-icon">device<wbr>Settings</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#logger" class="tsd-kind-icon">logger</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#addgeofence" class="tsd-kind-icon">add<wbr>Geofence</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#addgeofences" class="tsd-kind-icon">add<wbr>Geofences</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#changepace" class="tsd-kind-icon">change<wbr>Pace</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#destroylocation" class="tsd-kind-icon">destroy<wbr>Location</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#destroylocations" class="tsd-kind-icon">destroy<wbr>Locations</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#destroylog" class="tsd-kind-icon">destroy<wbr>Log</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#destroytransistorauthorizationtoken" class="tsd-kind-icon">destroy<wbr>Transistor<wbr>Authorization<wbr>Token</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#emaillog" class="tsd-kind-icon">email<wbr>Log</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#findorcreatetransistorauthorizationtoken" class="tsd-kind-icon">find<wbr>OrCreate<wbr>Transistor<wbr>Authorization<wbr>Token</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#finish" class="tsd-kind-icon">finish</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="backgroundgeolocation.html#finishheadlesstask" class="tsd-kind-icon">finish<wbr>Headless<wbr>Task</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#geofenceexists" class="tsd-kind-icon">geofence<wbr>Exists</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getcount" class="tsd-kind-icon">get<wbr>Count</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getcurrentposition" class="tsd-kind-icon">get<wbr>Current<wbr>Position</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getdeviceinfo" class="tsd-kind-icon">get<wbr>Device<wbr>Info</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getgeofence" class="tsd-kind-icon">get<wbr>Geofence</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getgeofences" class="tsd-kind-icon">get<wbr>Geofences</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getlocations" class="tsd-kind-icon">get<wbr>Locations</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getlog" class="tsd-kind-icon">get<wbr>Log</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getodometer" class="tsd-kind-icon">get<wbr>Odometer</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getproviderstate" class="tsd-kind-icon">get<wbr>Provider<wbr>State</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getsensors" class="tsd-kind-icon">get<wbr>Sensors</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#getstate" class="tsd-kind-icon">get<wbr>State</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#insertlocation" class="tsd-kind-icon">insert<wbr>Location</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#ispowersavemode" class="tsd-kind-icon">is<wbr>Power<wbr>Save<wbr>Mode</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onauthorization" class="tsd-kind-icon">on<wbr>Authorization</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#onnotificationaction" class="tsd-kind-icon">on<wbr>Notification<wbr>Action</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#playsound" class="tsd-kind-icon">play<wbr>Sound</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#ready" class="tsd-kind-icon">ready</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#registerheadlesstask" class="tsd-kind-icon">register<wbr>Headless<wbr>Task</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#removegeofence" class="tsd-kind-icon">remove<wbr>Geofence</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#removegeofences" class="tsd-kind-icon">remove<wbr>Geofences</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#removelisteners" class="tsd-kind-icon">remove<wbr>Listeners</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#requestpermission" class="tsd-kind-icon">request<wbr>Permission</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#requesttemporaryfullaccuracy" class="tsd-kind-icon">request<wbr>Temporary<wbr>Full<wbr>Accuracy</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#reset" class="tsd-kind-icon">reset</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#resetodometer" class="tsd-kind-icon">reset<wbr>Odometer</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#setconfig" class="tsd-kind-icon">set<wbr>Config</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#setloglevel" class="tsd-kind-icon">set<wbr>Log<wbr>Level</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#setodometer" class="tsd-kind-icon">set<wbr>Odometer</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#start" class="tsd-kind-icon">start</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#startbackgroundtask" class="tsd-kind-icon">start<wbr>Background<wbr>Task</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#startgeofences" class="tsd-kind-icon">start<wbr>Geofences</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#startschedule" class="tsd-kind-icon">start<wbr>Schedule</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#stop" class="tsd-kind-icon">stop</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#stopbackgroundtask" class="tsd-kind-icon">stop<wbr>Background<wbr>Task</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#stopschedule" class="tsd-kind-icon">stop<wbr>Schedule</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#stopwatchposition" class="tsd-kind-icon">stop<wbr>Watch<wbr>Position</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#sync" class="tsd-kind-icon">sync</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#transistortrackerparams" class="tsd-kind-icon">transistor<wbr>Tracker<wbr>Params</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="backgroundgeolocation.html#watchposition" class="tsd-kind-icon">watch<wbr>Position</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Constructors</h2>
				<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
					<a name="constructor" class="tsd-anchor"></a>
					<h3>constructor</h3>
					<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">new <wbr>Background<wbr>Geolocation<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="backgroundgeolocation.html" class="tsd-signature-type" data-tsd-kind="Class">BackgroundGeolocation</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<h4 class="tsd-returns-title">Returns <a href="backgroundgeolocation.html" class="tsd-signature-type" data-tsd-kind="Class">BackgroundGeolocation</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Events</h2>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onactivitychange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Activity<wbr>Change</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Activity<wbr>Change<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/motionactivityevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionActivityEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to changes in motion activity.</p>
								</div>
								<p>Your <code>callback</code> will be executed each time the activity-recognition system receives an event (<code>still, on_foot, in_vehicle, on_bicycle, running</code>).</p>
								<a href="#android" id="android" style="color: inherit; text-decoration: none;">
									<h3>Android</h3>
								</a>
								<p>Android <a href="../interfaces/motionactivityevent.html#confidence">MotionActivityEvent.confidence</a> always reports <code>100</code>%.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onActivityChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onActivityChange] &quot;</span><span style="color: #F8F8F2">, event);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/motionactivityevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionActivityEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/motionactivityevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionActivityEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/motionactivityevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionActivityEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onconnectivitychange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Connectivity<wbr>Change</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Connectivity<wbr>Change<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/connectivitychangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ConnectivityChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to changes in network connectivity.</p>
								</div>
								<p>Fired when the state of the device&#39;s network-connectivity changes (enabled -&gt; disabled and vice-versa).  By default, the plugin will automatically fire
								a <code>connectivitychange</code> event with the current state network-connectivity whenever the <a href="backgroundgeolocation.html#start">start</a> method is executed.</p>
								<p>ℹ️ The SDK subscribes internally to <code>connectivitychange</code> events &mdash; if you&#39;ve configured the SDK&#39;s HTTP Service (See <a href="../interfaces/httpevent.html">HTTP Guide</a>) and your app has queued locations,
								the SDK will automatically initiate uploading to your configured <a href="../interfaces/config.html#url">Config.url</a> when network connectivity is detected.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onConnectivityChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onConnectivityChange] &quot;</span><span style="color: #F8F8F2">, event);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/connectivitychangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ConnectivityChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/connectivitychangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ConnectivityChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/connectivitychangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ConnectivityChangeEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onenabledchange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Enabled<wbr>Change</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Enabled<wbr>Change<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to changes in plugin <a href="../interfaces/state.html#enabled">State.enabled</a>.</p>
								</div>
								<p>Fired when the SDK&#39;s <a href="../interfaces/state.html#enabled">State.enabled</a> changes.  For example, executing <a href="backgroundgeolocation.html#start">start</a> and <a href="backgroundgeolocation.html#stop">stop</a> will cause the <code>onEnabledChnage</code> event to fire.
									This event is primarily designed for use with the configuration option <a href="../interfaces/config.html#stopafterelapsedminutes">stopAfterElapsedMinutes</a>, which automatically executes the SDK&#39;s
								<a href="backgroundgeolocation.html#stop">stop</a> method.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onEnabledChange</span><span style="color: #F8F8F2">(</span><span style="color: #FD971F">isEnabled</span><span style="color: #F8F8F2"> </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onEnabledChanged] isEnabled? &quot;</span><span style="color: #F8F8F2">, isEnabled);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>enabled: <span class="tsd-signature-type">boolean</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="ongeofence" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Geofence</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Geofence<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofenceevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofenceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to Geofence transition events.</p>
								</div>
								<p>Your supplied <code>callback</code> will be called when any monitored geofence crossing occurs.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onGeofence</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onGeofence] &quot;</span><span style="color: #F8F8F2">, event);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofenceevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofenceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofenceevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofenceEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/geofenceevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofenceEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="ongeofenceschange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Geofences<wbr>Change</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Geofences<wbr>Change<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofenceschangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofencesChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to changes in actively monitored geofences.</p>
								</div>
								<p>Fired when the list of monitored-geofences changed.  The BackgroundGeolocation SDK contains powerful geofencing features that allow you to monitor
								any number of circular geofences you wish (thousands even), in spite of limits imposed by the native platform APIs (<strong>20 for iOS; 100 for Android</strong>).</p>
								<p>The plugin achieves this by storing your geofences in its database, using a <a href="https://en.wikipedia.org/wiki/Spatial_query">geospatial query</a> to determine
									those geofences in proximity (@see <a href="../interfaces/config.html#geofenceproximityradius">geofenceProximityRadius</a>), activating only those geofences closest to the device&#39;s current location
								(according to limit imposed by the corresponding platform).</p>
								<p>When the device is determined to be moving, the plugin periodically queries for geofences in proximity (eg. every minute) using the latest recorded
								location.  This geospatial query is <strong>very fast</strong>, even with tens-of-thousands geofences in the database.</p>
								<p>It&#39;s when this list of monitored geofences <em>changes</em>, that the plugin will fire the <code>onGeofencesChange</code> event.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onGeofencesChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> on </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> event.on;     </span><span style="color: #88846F">//&lt;-- new geofences activated.</span>
<span style="color: #F8F8F2">  </span><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> off </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> event.off; </span><span style="color: #88846F">//&lt;-- geofences that were just de-activated.</span>

<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Create map circles</span>
<span style="color: #F8F8F2">  on.</span><span style="color: #A6E22E">forEach</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">geofence</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    </span><span style="color: #A6E22E">createGeofenceMarker</span><span style="color: #F8F8F2">(geofence)</span>
<span style="color: #F8F8F2">  });</span>

<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Remove map circles</span>
<span style="color: #F8F8F2">  off.</span><span style="color: #A6E22E">forEach</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">identifier</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    </span><span style="color: #A6E22E">removeGeofenceMarker</span><span style="color: #F8F8F2">(identifier);</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofenceschangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofencesChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofenceschangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofencesChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/geofenceschangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">GeofencesChangeEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onheartbeat" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Heartbeat</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Heartbeat<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/heartbeatevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeartbeatEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to periodic heartbeat events.</p>
								</div>
								<p>Your <code>callback</code> will be executed for each <a href="../interfaces/config.html#heartbeatinterval">heartbeatInterval</a> while the device is in <strong>stationary</strong> state (<strong>iOS</strong> requires <a href="../interfaces/config.html#preventsuspend">preventSuspend</a>: true as well).</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  heartbeatInterval: </span><span style="color: #AE81FF">60</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  preventSuspend: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2"> </span><span style="color: #88846F">// &lt;-- Required for iOS</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onHeartbeat</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onHeartbeat] &quot;</span><span style="color: #F8F8F2">, event);</span>

<span style="color: #F8F8F2">  </span><span style="color: #88846F">// You could request a new location if you wish.</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">getCurrentPosition</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">    samples: </span><span style="color: #AE81FF">1</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">    persist: </span><span style="color: #AE81FF">true</span>
<span style="color: #F8F8F2">  }).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[getCurrentPosition] &quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">  });</span>
<span style="color: #F8F8F2">})</span>
</code></pre>
										<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Note:</h3>
										</a>
										<ul>
											<li> The <a href="../interfaces/location.html">Location</a> provided by the <a href="../interfaces/heartbeatevent.html">HeartbeatEvent</a> is only the last-known location.  The <em>heartbeat</em> event does not actively engage location-services.  If you wish to get the current location in your <code>callback</code>, use <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a>.</li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/heartbeatevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeartbeatEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/heartbeatevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeartbeatEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/heartbeatevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeartbeatEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onhttp" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Http</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Http<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>response<span class="tsd-signature-symbol">: </span><a href="../interfaces/httpevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HttpEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to HTTP responses from your server <a href="../interfaces/config.html#url">Config.url</a>.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onHttp</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">response</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> status </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> response.status;</span>
<span style="color: #F8F8F2">  </span><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> success </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> response.success;</span>
<span style="color: #F8F8F2">  </span><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> responseText </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> response.responseText;</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onHttp] &quot;</span><span style="color: #F8F8F2">, response);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="../interfaces/httpevent.html">HTTP Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>response<span class="tsd-signature-symbol">: </span><a href="../interfaces/httpevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HttpEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>response<span class="tsd-signature-symbol">: </span><a href="../interfaces/httpevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HttpEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>response: <a href="../interfaces/httpevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HttpEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onlocation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Location</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Location<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to location events.</p>
								</div>
								<p>Every location recorded by the SDK is provided to your <code>callback</code>, including those from <a href="backgroundgeolocation.html#onmotionchange">onMotionChange</a>, <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a> and <a href="backgroundgeolocation.html#watchposition">watchPosition</a>.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onLocation</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onLocation] success: &quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">}, (</span><span style="color: #FD971F">error</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onLocation] ERROR: &quot;</span><span style="color: #F8F8F2">, error);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#error-codes" id="error-codes" style="color: inherit; text-decoration: none;">
											<h3>Error Codes</h3>
										</a>
										<p>If the native location API fails to return a location, the <code>failure</code> callback will be provided a <a href="../index.html#locationerror">LocationError</a>.</p>
										<a href="#⚠️-note-locationsample" id="⚠️-note-locationsample" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Note <a href="../interfaces/location.html#sample">Location.sample</a>:</h3>
										</a>
										<p>When performing a <a href="backgroundgeolocation.html#onmotionchange">onMotionChange</a> or <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a>, the plugin requests <strong>multiple</strong> location <em>samples</em> in order to record the most accurate location possible.  These <em>samples</em> are <strong>not</strong> persisted to the database but they will be provided to your <code>callback</code>, for your convenience, since it can take some seconds for the best possible location to arrive.</p>
										<p>For example, you might use these samples to progressively update the user&#39;s position on a map.  You can detect these <em>samples</em> in your <code>callback</code> via <code>location.sample == true</code>.  If you&#39;re manually <code>POST</code>ing location to your server, you should ignore these locations.</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>success: <span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>location: <a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>errorCode: <a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onmotionchange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Motion<wbr>Change</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Motion<wbr>Change<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/motionchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to <strong><code>motionchange</code></strong> events.</p>
								</div>
								<p>Your <code>callback</code> will be executed each time the device has changed-state between <strong>MOVING</strong> or <strong>STATIONARY</strong>.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onMotionChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #F92672">if</span><span style="color: #F8F8F2"> (event.isMoving) {</span>
<span style="color: #F8F8F2">     console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onMotionChange] Device has just started MOVING &quot;</span><span style="color: #F8F8F2">, event.location);</span>
<span style="color: #F8F8F2">  } </span><span style="color: #F92672">else</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">     console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onMotionChange] Device has just STOPPED:  &quot;</span><span style="color: #F8F8F2">, event.location);</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<hr>
										<a href="#⚠️-warning--autosyncthreshold" id="⚠️-warning--autosyncthreshold" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Warning:  <code>autoSyncThreshold</code></h3>
										</a>
										<p>If you&#39;ve configured <a href="../interfaces/config.html#autosyncthreshold">Config.autoSyncThreshold</a>, it <strong>will be ignored</strong> during a <code>onMotionChange</code> event &mdash; all queued locations will be uploaded, since:</p>
										<ul>
											<li>If an <code>onMotionChange</code> event fires <strong>into the <em>moving</em> state</strong>, the device may have been sitting dormant for a long period of time.  The plugin is <em>eager</em> to upload this state-change to the server as soon as possible.</li>
											<li>If an <code>onMotionChange</code> event fires <strong>into the <em>stationary</em> state</strong>, the device may be about to lie dormant for a long period of time.  The plugin is <em>eager</em> to upload all queued locations to the server before going dormant.</li>
										</ul>
										<hr>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="../interfaces/config.html#stoptimeout">stopTimeout</a></li>
											<li>📘 <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Philosophy-of-Operation">Philosophy of Operation</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/motionchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/motionchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/motionchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">MotionChangeEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onpowersavechange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Power<wbr>Save<wbr>Change</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Power<wbr>Save<wbr>Change<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to state changes in OS power-saving system.</p>
								</div>
								<p>Fired when the state of the operating-system&#39;s &quot;Power Saving&quot; mode changes.  Your <code>callback</code> will be provided with a <code>bool</code> showing whether
								&quot;Power Saving&quot; is <strong>enabled</strong> or <strong>disabled</strong>.  Power Saving mode can throttle certain services in the background, such as HTTP requests or GPS.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-break">break</dt>
									<dd><p>ℹ️ You can manually request the current-state of &quot;Power Saving&quot; mode with the method <a href="backgroundgeolocation.html#ispowersavemode">isPowerSaveMode</a>.</p>
										<a href="#ios" id="ios" style="color: inherit; text-decoration: none;">
											<h3>iOS</h3>
										</a>
										<p>iOS Power Saving mode can be engaged manually by the user in <strong>Settings -&gt; Battery</strong> or from an automatic OS dialog.</p>
										<p><img src="https://dl.dropboxusercontent.com/s/lz3zl2jg4nzstg3/Screenshot%202017-09-19%2010.34.21.png?dl=1" alt=""></p>
										<a href="#android" id="android" style="color: inherit; text-decoration: none;">
											<h3>Android</h3>
										</a>
										<p>Android Power Saving mode can be engaged manually by the user in <strong>Settings -&gt; Battery -&gt; Battery Saver</strong> or automatically with a user-specified &quot;threshold&quot; (eg: 15%).</p>
										<p><img src="https://dl.dropboxusercontent.com/s/raz8lagrqayowia/Screenshot%202017-09-19%2010.33.49.png?dl=1" alt=""></p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onPowerSaveChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">isPowerSaveMode</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onPowerSaveChange: &quot;</span><span style="color: #F8F8F2">, isPowerSaveMode);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>enabled: <span class="tsd-signature-type">boolean</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onproviderchange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Provider<wbr>Change</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Provider<wbr>Change<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to changes in device&#39;s location-services configuration / authorization.</p>
								</div>
								<p>Your <code>callback</code> fill be executed whenever a change in the state of the device&#39;s <strong>Location Services</strong> has been detected.  eg: &quot;GPS ON&quot;, &quot;WiFi only&quot;.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onProviderChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onProviderChange: &quot;</span><span style="color: #F8F8F2">, event);</span>

<span style="color: #F8F8F2">  </span><span style="color: #F92672">switch</span><span style="color: #F8F8F2">(event.status) {</span>
<span style="color: #F8F8F2">    </span><span style="color: #F92672">case</span><span style="color: #F8F8F2"> BackgroundGeolocation.AUTHORIZATION_STATUS_DENIED:</span>
<span style="color: #F8F8F2">      </span><span style="color: #88846F">// Android &amp; iOS</span>
<span style="color: #F8F8F2">      console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- Location authorization denied&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">      </span><span style="color: #F92672">break</span><span style="color: #F8F8F2">;</span>
<span style="color: #F8F8F2">    </span><span style="color: #F92672">case</span><span style="color: #F8F8F2"> BackgroundGeolocation.AUTHORIZATION_STATUS_ALWAYS:</span>
<span style="color: #F8F8F2">      </span><span style="color: #88846F">// Android &amp; iOS</span>
<span style="color: #F8F8F2">      console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- Location always granted&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">      </span><span style="color: #F92672">break</span><span style="color: #F8F8F2">;</span>
<span style="color: #F8F8F2">    </span><span style="color: #F92672">case</span><span style="color: #F8F8F2"> BackgroundGeolocation.AUTHORIZATION_STATUS_WHEN_IN_USE:</span>
<span style="color: #F8F8F2">      </span><span style="color: #88846F">// iOS only</span>
<span style="color: #F8F8F2">      console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- Location WhenInUse granted&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">      </span><span style="color: #F92672">break</span><span style="color: #F8F8F2">;</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>You can explicitly request the current state of location-services using <a href="backgroundgeolocation.html#getproviderstate">getProviderState</a>.</li>
										</ul>
										<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Note:</h3>
										</a>
										<ul>
											<li>The plugin always force-fires an <a href="backgroundgeolocation.html#onproviderchange">onProviderChange</a> event whenever the app is launched (right after the <a href="backgroundgeolocation.html#ready">ready</a> method is executed), regardless of current state, so you can learn the the current state of location-services with each boot of your application.</li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-event tsd-parent-kind-class tsd-is-static">
					<a name="onschedule" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Schedule</h3>
					<ul class="tsd-signatures tsd-kind-event tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Schedule<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to <a href="../interfaces/config.html#schedule">schedule</a> events.</p>
								</div>
								<p>Your <code>callback</code> will be executed each time a <a href="../interfaces/config.html#schedule">schedule</a> event fires.  Your <code>callback</code> will be provided with the current <a href="../interfaces/state.html">State</a>:  <strong><code>state.enabled</code></strong>
								will reflect the state according to your <a href="../interfaces/config.html#schedule">schedule</a>.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onSchedule</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #F92672">if</span><span style="color: #F8F8F2"> (state.enabled) {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onSchedule] scheduled start tracking&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">  } </span><span style="color: #F92672">else</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onSchedule] scheduled stop tracking&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="accuracy_authorization_full" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ACCURACY_<wbr>AUTHORIZATION_<wbr>FULL</h3>
					<div class="tsd-signature tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>FULL<span class="tsd-signature-symbol">:</span> <a href="../index.html#accuracyauthorization" class="tsd-signature-type" data-tsd-kind="Type alias">AccuracyAuthorization</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="accuracy_authorization_reduced" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ACCURACY_<wbr>AUTHORIZATION_<wbr>REDUCED</h3>
					<div class="tsd-signature tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>REDUCED<span class="tsd-signature-symbol">:</span> <a href="../index.html#accuracyauthorization" class="tsd-signature-type" data-tsd-kind="Type alias">AccuracyAuthorization</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="activity_type_airborne" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ACTIVITY_<wbr>TYPE_<wbr>AIRBORNE</h3>
					<div class="tsd-signature tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AIRBORNE<span class="tsd-signature-symbol">:</span> <a href="../index.html#activitytype" class="tsd-signature-type" data-tsd-kind="Type alias">ActivityType</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="activity_type_automotive_navigation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ACTIVITY_<wbr>TYPE_<wbr>AUTOMOTIVE_<wbr>NAVIGATION</h3>
					<div class="tsd-signature tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AUTOMOTIVE_<wbr>NAVIGATION<span class="tsd-signature-symbol">:</span> <a href="../index.html#activitytype" class="tsd-signature-type" data-tsd-kind="Type alias">ActivityType</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="activity_type_fitness" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ACTIVITY_<wbr>TYPE_<wbr>FITNESS</h3>
					<div class="tsd-signature tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>FITNESS<span class="tsd-signature-symbol">:</span> <a href="../index.html#activitytype" class="tsd-signature-type" data-tsd-kind="Type alias">ActivityType</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="activity_type_other" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ACTIVITY_<wbr>TYPE_<wbr>OTHER</h3>
					<div class="tsd-signature tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER<span class="tsd-signature-symbol">:</span> <a href="../index.html#activitytype" class="tsd-signature-type" data-tsd-kind="Type alias">ActivityType</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="activity_type_other_navigation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ACTIVITY_<wbr>TYPE_<wbr>OTHER_<wbr>NAVIGATION</h3>
					<div class="tsd-signature tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER_<wbr>NAVIGATION<span class="tsd-signature-symbol">:</span> <a href="../index.html#activitytype" class="tsd-signature-type" data-tsd-kind="Type alias">ActivityType</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="authorization_status_always" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> AUTHORIZATION_<wbr>STATUS_<wbr>ALWAYS</h3>
					<div class="tsd-signature tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>ALWAYS<span class="tsd-signature-symbol">:</span> <a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="authorization_status_denied" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> AUTHORIZATION_<wbr>STATUS_<wbr>DENIED</h3>
					<div class="tsd-signature tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>DENIED<span class="tsd-signature-symbol">:</span> <a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="authorization_status_not_determined" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> AUTHORIZATION_<wbr>STATUS_<wbr>NOT_<wbr>DETERMINED</h3>
					<div class="tsd-signature tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>NOT_<wbr>DETERMINED<span class="tsd-signature-symbol">:</span> <a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="authorization_status_restricted" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> AUTHORIZATION_<wbr>STATUS_<wbr>RESTRICTED</h3>
					<div class="tsd-signature tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>RESTRICTED<span class="tsd-signature-symbol">:</span> <a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="authorization_status_when_in_use" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> AUTHORIZATION_<wbr>STATUS_<wbr>WHEN_<wbr>IN_<wbr>USE</h3>
					<div class="tsd-signature tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>WHEN_<wbr>IN_<wbr>USE<span class="tsd-signature-symbol">:</span> <a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="desired_accuracy_high" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DESIRED_<wbr>ACCURACY_<wbr>HIGH</h3>
					<div class="tsd-signature tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>HIGH<span class="tsd-signature-symbol">:</span> <a href="../index.html#locationaccuracy" class="tsd-signature-type" data-tsd-kind="Type alias">LocationAccuracy</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="desired_accuracy_low" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DESIRED_<wbr>ACCURACY_<wbr>LOW</h3>
					<div class="tsd-signature tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOW<span class="tsd-signature-symbol">:</span> <a href="../index.html#locationaccuracy" class="tsd-signature-type" data-tsd-kind="Type alias">LocationAccuracy</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="desired_accuracy_lowest" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DESIRED_<wbr>ACCURACY_<wbr>LOWEST</h3>
					<div class="tsd-signature tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOWEST<span class="tsd-signature-symbol">:</span> <a href="../index.html#locationaccuracy" class="tsd-signature-type" data-tsd-kind="Type alias">LocationAccuracy</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="desired_accuracy_medium" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DESIRED_<wbr>ACCURACY_<wbr>MEDIUM</h3>
					<div class="tsd-signature tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>MEDIUM<span class="tsd-signature-symbol">:</span> <a href="../index.html#locationaccuracy" class="tsd-signature-type" data-tsd-kind="Type alias">LocationAccuracy</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="desired_accuracy_navigation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DESIRED_<wbr>ACCURACY_<wbr>NAVIGATION</h3>
					<div class="tsd-signature tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>NAVIGATION<span class="tsd-signature-symbol">:</span> <a href="../index.html#locationaccuracy" class="tsd-signature-type" data-tsd-kind="Type alias">LocationAccuracy</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="desired_accuracy_very_low" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DESIRED_<wbr>ACCURACY_<wbr>VERY_<wbr>LOW</h3>
					<div class="tsd-signature tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>VERY_<wbr>LOW<span class="tsd-signature-symbol">:</span> <a href="../index.html#locationaccuracy" class="tsd-signature-type" data-tsd-kind="Type alias">LocationAccuracy</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_activitychange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>ACTIVITYCHANGE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>ACTIVITYCHANGE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_authorization" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>AUTHORIZATION</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>AUTHORIZATION<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_boot" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>BOOT</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>BOOT<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_connectivitychange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>CONNECTIVITYCHANGE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>CONNECTIVITYCHANGE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_enabledchange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>ENABLEDCHANGE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>ENABLEDCHANGE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_geofence" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>GEOFENCE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>GEOFENCE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_geofenceschange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>GEOFENCESCHANGE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>GEOFENCESCHANGE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_heartbeat" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>HEARTBEAT</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>HEARTBEAT<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_http" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>HTTP</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>HTTP<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_location" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>LOCATION</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>LOCATION<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_motionchange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>MOTIONCHANGE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>MOTIONCHANGE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_notificationaction" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>NOTIFICATIONACTION</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>NOTIFICATIONACTION<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_powersavechange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>POWERSAVECHANGE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>POWERSAVECHANGE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_providerchange" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>PROVIDERCHANGE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>PROVIDERCHANGE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_schedule" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>SCHEDULE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>SCHEDULE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="event_terminate" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> EVENT_<wbr>TERMINATE</h3>
					<div class="tsd-signature tsd-kind-icon">EVENT_<wbr>TERMINATE<span class="tsd-signature-symbol">:</span> <a href="../index.html#event" class="tsd-signature-type" data-tsd-kind="Type alias">Event</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="log_level_debug" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> LOG_<wbr>LEVEL_<wbr>DEBUG</h3>
					<div class="tsd-signature tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>DEBUG<span class="tsd-signature-symbol">:</span> <a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="log_level_error" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> LOG_<wbr>LEVEL_<wbr>ERROR</h3>
					<div class="tsd-signature tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>ERROR<span class="tsd-signature-symbol">:</span> <a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="log_level_info" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> LOG_<wbr>LEVEL_<wbr>INFO</h3>
					<div class="tsd-signature tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>INFO<span class="tsd-signature-symbol">:</span> <a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="log_level_off" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> LOG_<wbr>LEVEL_<wbr>OFF</h3>
					<div class="tsd-signature tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>OFF<span class="tsd-signature-symbol">:</span> <a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="log_level_verbose" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> LOG_<wbr>LEVEL_<wbr>VERBOSE</h3>
					<div class="tsd-signature tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>VERBOSE<span class="tsd-signature-symbol">:</span> <a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="log_level_warning" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> LOG_<wbr>LEVEL_<wbr>WARNING</h3>
					<div class="tsd-signature tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>WARNING<span class="tsd-signature-symbol">:</span> <a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="notification_priority_default" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> NOTIFICATION_<wbr>PRIORITY_<wbr>DEFAULT</h3>
					<div class="tsd-signature tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>DEFAULT<span class="tsd-signature-symbol">:</span> <a href="../index.html#notificationpriority" class="tsd-signature-type" data-tsd-kind="Type alias">NotificationPriority</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="notification_priority_high" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> NOTIFICATION_<wbr>PRIORITY_<wbr>HIGH</h3>
					<div class="tsd-signature tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>HIGH<span class="tsd-signature-symbol">:</span> <a href="../index.html#notificationpriority" class="tsd-signature-type" data-tsd-kind="Type alias">NotificationPriority</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="notification_priority_low" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> NOTIFICATION_<wbr>PRIORITY_<wbr>LOW</h3>
					<div class="tsd-signature tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>LOW<span class="tsd-signature-symbol">:</span> <a href="../index.html#notificationpriority" class="tsd-signature-type" data-tsd-kind="Type alias">NotificationPriority</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="notification_priority_max" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> NOTIFICATION_<wbr>PRIORITY_<wbr>MAX</h3>
					<div class="tsd-signature tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MAX<span class="tsd-signature-symbol">:</span> <a href="../index.html#notificationpriority" class="tsd-signature-type" data-tsd-kind="Type alias">NotificationPriority</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="notification_priority_min" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> NOTIFICATION_<wbr>PRIORITY_<wbr>MIN</h3>
					<div class="tsd-signature tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MIN<span class="tsd-signature-symbol">:</span> <a href="../index.html#notificationpriority" class="tsd-signature-type" data-tsd-kind="Type alias">NotificationPriority</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="persist_mode_all" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> PERSIST_<wbr>MODE_<wbr>ALL</h3>
					<div class="tsd-signature tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>ALL<span class="tsd-signature-symbol">:</span> <a href="../index.html#persistmode" class="tsd-signature-type" data-tsd-kind="Type alias">PersistMode</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="persist_mode_geofence" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> PERSIST_<wbr>MODE_<wbr>GEOFENCE</h3>
					<div class="tsd-signature tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>GEOFENCE<span class="tsd-signature-symbol">:</span> <a href="../index.html#persistmode" class="tsd-signature-type" data-tsd-kind="Type alias">PersistMode</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="persist_mode_location" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> PERSIST_<wbr>MODE_<wbr>LOCATION</h3>
					<div class="tsd-signature tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>LOCATION<span class="tsd-signature-symbol">:</span> <a href="../index.html#persistmode" class="tsd-signature-type" data-tsd-kind="Type alias">PersistMode</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="persist_mode_none" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> PERSIST_<wbr>MODE_<wbr>NONE</h3>
					<div class="tsd-signature tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>NONE<span class="tsd-signature-symbol">:</span> <a href="../index.html#persistmode" class="tsd-signature-type" data-tsd-kind="Type alias">PersistMode</a></div>
					<aside class="tsd-sources">
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="devicesettings" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> device<wbr>Settings</h3>
					<div class="tsd-signature tsd-kind-icon">device<wbr>Settings<span class="tsd-signature-symbol">:</span> <a href="../interfaces/devicesettings.html" class="tsd-signature-type" data-tsd-kind="Interface">DeviceSettings</a></div>
					<aside class="tsd-sources">
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p><a href="../interfaces/devicesettings.html">DeviceSettings</a> API</p>
						</div>
						<p>Provides an API to show Android &amp; vendor-specific Battery / Power Management settings screens that can affect performance of the Background Geolocation SDK on various devices.</p>
						<p>The site <a href="https://dontkillmyapp.com/">Don&#39;t Kill My App</a> provides a comprehensive list of poor Android vendors which throttle background-services that this plugin relies upon.</p>
						<p>This <a href="../interfaces/devicesettings.html">DeviceSettings</a> API is an attempt to provide resources to direct the user to the appropriate vendor-specific settings screen to resolve issues with background operation.</p>
						<p><img src="https://dl.dropboxusercontent.com/s/u7ljngfecxvibyh/huawei-settings-battery-launch.jpg?dl=1" alt="">
						<img src="https://dl.dropboxusercontent.com/s/hd6yxw58hgc7ef4/android-settings-battery-optimization.jpg?dl=1" alt=""></p>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="logger" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> logger</h3>
					<div class="tsd-signature tsd-kind-icon">logger<span class="tsd-signature-symbol">:</span> <a href="../interfaces/logger.html" class="tsd-signature-type" data-tsd-kind="Interface">Logger</a></div>
					<aside class="tsd-sources">
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p><a href="../interfaces/logger.html">Logger</a> API</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="addgeofence" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> add<wbr>Geofence</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">add<wbr>Geofence<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Adds a <a href="../interfaces/geofence.html">Geofence</a> to be monitored by the native Geofencing API.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">addGeofence</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  identifier: </span><span style="color: #E6DB74">&quot;Home&quot;</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  radius: </span><span style="color: #AE81FF">150</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  latitude: </span><span style="color: #AE81FF">45.51921926</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  longitude: </span><span style="color: #F92672">-</span><span style="color: #AE81FF">73.61678581</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  notifyOnEntry: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  notifyOnExit: </span><span style="color: #AE81FF">false</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  notifyOnDwell: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  loiteringDelay: </span><span style="color: #AE81FF">30000</span><span style="color: #F8F8F2">,  </span><span style="color: #88846F">// 30 seconds</span>
<span style="color: #F8F8F2">  extras: {               </span><span style="color: #88846F">// Optional arbitrary meta-data</span>
<span style="color: #F8F8F2">    zone_id: </span><span style="color: #AE81FF">1234</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">success</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[addGeofence] success&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">catch</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">error</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[addGeofence] FAILURE: &quot;</span><span style="color: #F8F8F2">, error);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-note" id="ℹ️-note" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ Note:</h3>
										</a>
										<ul>
											<li>If a geofence(s) <em>already</em> exists with the configured <a href="../interfaces/geofence.html#identifier">Geofence.identifier</a>, the previous one(s) will be <strong>deleted</strong> before the new one is inserted.</li>
											<li>When adding <em>multiple</em>, it&#39;s about <strong>10 times faster</strong> to use <a href="backgroundgeolocation.html#addgeofences">addGeofences</a> instead.</li>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>config: <a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="addgeofences" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> add<wbr>Geofences</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">add<wbr>Geofences<span class="tsd-signature-symbol">(</span>geofences<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Adds a list of <a href="../interfaces/geofence.html">Geofence</a> to be monitored by the native Geofencing API.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> geofences </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> [{</span>
<span style="color: #F8F8F2">  identifier: </span><span style="color: #E6DB74">&quot;foo&quot;</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  radius: </span><span style="color: #AE81FF">200</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  latitude: </span><span style="color: #AE81FF">45.51921926</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  longitude: </span><span style="color: #F92672">-</span><span style="color: #AE81FF">73.61678581</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  notifyOnEntry: </span><span style="color: #AE81FF">true</span>
<span style="color: #F8F8F2">},</span>
<span style="color: #F8F8F2">  identifier: </span><span style="color: #E6DB74">&quot;bar&quot;</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  radius: </span><span style="color: #AE81FF">200</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  latitude: </span><span style="color: #AE81FF">45.51921926</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  longitude: </span><span style="color: #F92672">-</span><span style="color: #AE81FF">73.61678581</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  notifyOnEntry: </span><span style="color: #AE81FF">true</span>
<span style="color: #F8F8F2">}];</span>

<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">addGeofences</span><span style="color: #F8F8F2">(geofences);</span>
</code></pre>
										<a href="#ℹ️-note" id="ℹ️-note" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ Note:</h3>
										</a>
										<ul>
											<li>If a geofence(s) <em>already</em> exists with the configured <a href="../interfaces/geofence.html#identifier">Geofence.identifier</a>, the previous one(s) will be <strong>deleted</strong> before the new one is inserted.</li>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
											<li><a href="backgroundgeolocation.html#addgeofence">addGeofence</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>geofences: <a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="changepace" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> change<wbr>Pace</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">change<wbr>Pace<span class="tsd-signature-symbol">(</span>isMoving<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Manually toggles the SDK&#39;s <strong>motion state</strong> between <strong>stationary</strong> and <strong>moving</strong>.</p>
								</div>
								<p>When provided a value of  <strong><code>true</code></strong>, the plugin will engage location-services and begin aggressively tracking the device&#39;s location <em>immediately</em>,
								bypassing stationary monitoring.</p>
								<p>If you were making a &quot;Jogging&quot; application, this would be your <strong><code>[Start Workout]</code></strong> button to immediately begin location-tracking.  Send <strong><code>false</code></strong>
								to turn <strong>off</strong> location-services and return the plugin to the <strong>stationary</strong> state.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">changePace</span><span style="color: #F8F8F2">(</span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">);  </span><span style="color: #88846F">// &lt;-- Location-services ON (&quot;moving&quot; state)</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">changePace</span><span style="color: #F8F8F2">(</span><span style="color: #AE81FF">false</span><span style="color: #F8F8F2">); </span><span style="color: #88846F">// &lt;-- Location-services OFF (&quot;stationary&quot; state)</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>isMoving: <span class="tsd-signature-type">boolean</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="destroylocation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> destroy<wbr>Location</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">destroy<wbr>Location<span class="tsd-signature-symbol">(</span>uuid<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">String</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Destroy a single location by <a href="../interfaces/location.html#uuid">Location.uuid</a></p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">destroyLocation</span><span style="color: #F8F8F2">(location.uuid);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>uuid: <span class="tsd-signature-type">String</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="destroylocations" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> destroy<wbr>Locations</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">destroy<wbr>Locations<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Remove all records in SDK&#39;s SQLite database.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> success </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">destroyLocations</span><span style="color: #F8F8F2">();</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="destroylog" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> destroy<wbr>Log</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">destroy<wbr>Log<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-deprecated">deprecated</dt>
									<dd><p>Use <a href="../interfaces/logger.html#destroylog">Logger.destroyLog</a>.</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="destroytransistorauthorizationtoken" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> destroy<wbr>Transistor<wbr>Authorization<wbr>Token</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">destroy<wbr>Transistor<wbr>Authorization<wbr>Token<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Destroys the cached Transistor JSON Web Token used to authorize with the Demo Server at <a href="http://tracker.transistorsoft.com">http://tracker.transistorsoft.com</a> or your local instance of <a href="https://github.com/transistorsoft/background-geolocation-console">background-geolocation-console</a></p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">destroyTransistorAuthorizationToken</span><span style="color: #F8F8F2">();</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#findorcreatetransistorauthorizationtoken">findOrCreateTransistorAuthorizationToken</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> url: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="emaillog" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> email<wbr>Log</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">email<wbr>Log<span class="tsd-signature-symbol">(</span>email<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-deprecated">deprecated</dt>
									<dd><p>Use <a href="../interfaces/logger.html#emaillog">Logger.emailLog</a>.</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>email: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="findorcreatetransistorauthorizationtoken" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> find<wbr>OrCreate<wbr>Transistor<wbr>Authorization<wbr>Token</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">find<wbr>OrCreate<wbr>Transistor<wbr>Authorization<wbr>Token<span class="tsd-signature-symbol">(</span>orgname<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, username<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/transistorauthorizationtoken.html" class="tsd-signature-type" data-tsd-kind="Interface">TransistorAuthorizationToken</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Returns a <em>JSON Web Token</em> (<a href="https://jwt.io/">JWT</a>) suitable for <a href="../interfaces/authorization.html">Authorization</a> with the Transistor Software demo server at <a href="http://tracker.transistorsoft.com">http://tracker.transistorsoft.com</a>.</p>
								</div>
								<p>To learn how to upload locations to the <em>Transistor Demo Server</em>, see <a href="../interfaces/transistorauthorizationtoken.html">TransistorAuthorizationToken</a>.
								<img src="https://dl.dropboxusercontent.com/s/3abuyyhioyypk8c/screenshot-tracker-transistorsoft.png?dl=1" alt=""></p>
								<p>This token is typically provided to <a href="../interfaces/config.html#transistorauthorizationtoken">Config.transistorAuthorizationToken</a> when first configuring the SDK with <a href="backgroundgeolocation.html#ready">ready</a>.</p>
								<a href="#params" id="params" style="color: inherit; text-decoration: none;">
									<h3>Params</h3>
								</a>
								<a href="#param-string-orgname" id="param-string-orgname" style="color: inherit; text-decoration: none;">
									<h4><code>@param {String} orgname</code></h4>
								</a>
								<p>Represents a &quot;company&quot; or &quot;organization&quot;; a container for posting locations from multiple devices to the same account.  <code>orgname</code> is used for accessing your device results in web app, eg: <a href="http://tracker.transistorsoft.com/my-organization-name">http://tracker.transistorsoft.com/my-organization-name</a>.</p>
								<a href="#param-string-username" id="param-string-username" style="color: inherit; text-decoration: none;">
									<h4><code>@param {String} username</code></h4>
								</a>
								<p>Appended to the <a href="../interfaces/deviceinfo.html#model">DeviceInfo.model</a> as a means of creating a consistent and unique device identifier.  For example:</p>
								<ul>
									<li><code>Pixel 3a-my-username</code></li>
									<li><code>A310-my-username</code></li>
									<li><code>iPhone 11,3-my-username</code></li>
								</ul>
								<a href="#param-string-url-httptrackertransistorsoftcom" id="param-string-url-httptrackertransistorsoftcom" style="color: inherit; text-decoration: none;">
									<h4><code>@param {String} url [http://tracker.transistorsoft.com]</code></h4>
								</a>
								<p>The server to register with and receive authentication tokens from.  Defaults to <code>http://tracker.transistorsoft.com</code>.  If you have a local instance of <a href="https://github.com/transistorsoft/background-geolocation-console">background-geolocation-console</a> running
								on your localhost, you would provide the <strong>ip address</strong> of your server, eg: <code>http://192.168.0.100:9000</code>.</p>
								<hr>
								<p>When the SDK receives the <a href="../interfaces/transistorauthorizationtoken.html">TransistorAuthorizationToken</a> from <code>url</code>, it will be cached in persistant-storage within the native code.  If the SDK doesn&quot;t find a cached token on the client, it will automatically register for one from <code>url</code>, using the provided <code>orgname</code> and <code>username</code>.  Otherwise, the cached token will be immediately returned.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> orgname      </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #E6DB74">&quot;my-company-name&quot;</span><span style="color: #F8F8F2">;</span>
<span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> username     </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #E6DB74">&quot;my-username&quot;</span><span style="color: #F8F8F2">;</span>

<span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> token </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">findOrCreateTransistorAuthorizationToken</span><span style="color: #F8F8F2">(orgname, username);</span>

<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  transistorAuthorizationToken: token</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#destroytransistorauthorizationtoken">destroyTransistorAuthorizationToken</a></li>
											<li><a href="../interfaces/config.html#transistorauthorizationtoken">Config.transistorAuthorizationToken</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>orgname: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>username: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> url: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/transistorauthorizationtoken.html" class="tsd-signature-type" data-tsd-kind="Interface">TransistorAuthorizationToken</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="finish" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> finish</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">finish<span class="tsd-signature-symbol">(</span>taskId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-alias">alias</dt>
									<dd><p><a href="backgroundgeolocation.html#stopbackgroundtask">stopBackgroundTask</a></p>
									</dd>
									<dt class="tsd-comment-tag-deprecated">deprecated</dt>
									<dd></dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>taskId: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
					<a name="finishheadlesstask" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> finish<wbr>Headless<wbr>Task</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">finish<wbr>Headless<wbr>Task<span class="tsd-signature-symbol">(</span>taskId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>taskId: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="geofenceexists" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> geofence<wbr>Exists</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">geofence<wbr>Exists<span class="tsd-signature-symbol">(</span>identifier<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, callback<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>exists<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Determine if a particular geofence exists in the SDK&#39;s database.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> exists </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">geofenceExists</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;HOME&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[geofenceExists] &quot;</span><span style="color: #F8F8F2">, exists);</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>identifier: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <span class="tsd-signature-symbol">(</span>exists<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>exists<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>exists: <span class="tsd-signature-type">boolean</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getcount" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Count</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Count<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>count<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Retrieve the count of all locations current stored in the SDK&#39;s SQLite database.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> count </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getCount</span><span style="color: #F8F8F2">();</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>count<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>count<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>count: <span class="tsd-signature-type">number</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getcurrentposition" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Current<wbr>Position</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Current<wbr>Position<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">: </span><a href="../interfaces/currentpositionrequest.html" class="tsd-signature-type" data-tsd-kind="Interface">CurrentPositionRequest</a>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Retrieves the current <a href="../interfaces/location.html">Location</a>.</p>
								</div>
								<p>This method instructs the native code to fetch exactly one location using maximum power &amp; accuracy.  The native code will persist the fetched location to
									its SQLite database just as any other location in addition to POSTing to your configured <a href="../interfaces/config.html#url">Config.url</a>.
								If an error occurs while fetching the location, <code>catch</code> will be provided with an <a href="../index.html#locationerror">LocationError</a>.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-break">break</dt>
									<dd>
										<a href="#options" id="options" style="color: inherit; text-decoration: none;">
											<h3>Options</h3>
										</a>
										<p>See <a href="../interfaces/currentpositionrequest.html">CurrentPositionRequest</a>.</p>
										<a href="#error-codes" id="error-codes" style="color: inherit; text-decoration: none;">
											<h3>Error Codes</h3>
										</a>
										<p>See <a href="../index.html#locationerror">LocationError</a>.</p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> location </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getCurrentPosition</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  timeout: </span><span style="color: #AE81FF">30</span><span style="color: #F8F8F2">,          </span><span style="color: #88846F">// 30 second timeout to fetch location</span>
<span style="color: #F8F8F2">  maximumAge: </span><span style="color: #AE81FF">5000</span><span style="color: #F8F8F2">,     </span><span style="color: #88846F">// Accept the last-known-location if not older than 5000 ms.</span>
<span style="color: #F8F8F2">  desiredAccuracy: </span><span style="color: #AE81FF">10</span><span style="color: #F8F8F2">,  </span><span style="color: #88846F">// Try to fetch a location with an accuracy of `10` meters.</span>
<span style="color: #F8F8F2">  samples: </span><span style="color: #AE81FF">3</span><span style="color: #F8F8F2">,           </span><span style="color: #88846F">// How many location samples to attempt.</span>
<span style="color: #F8F8F2">  extras: {             </span><span style="color: #88846F">// Custom meta-data.</span>
<span style="color: #F8F8F2">    </span><span style="color: #E6DB74">&quot;route_id&quot;</span><span style="color: #F8F8F2">: </span><span style="color: #AE81FF">123</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Note:</h3>
										</a>
										<ul>
											<li>While <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a> will receive only <strong>one</strong> <a href="../interfaces/location.html">Location</a>, the plugin <em>does</em> request <strong>multiple</strong> location samples which will all be provided
											to the <a href="backgroundgeolocation.html#onlocation">onLocation</a> event-listener.  You can detect these samples via <a href="../interfaces/location.html#sample">Location.sample</a> <code>== true</code>.</li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>options: <a href="../interfaces/currentpositionrequest.html" class="tsd-signature-type" data-tsd-kind="Interface">CurrentPositionRequest</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>location: <a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>errorCode: <a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getdeviceinfo" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Device<wbr>Info</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Device<wbr>Info<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/deviceinfo.html" class="tsd-signature-type" data-tsd-kind="Interface">DeviceInfo</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/deviceinfo.html" class="tsd-signature-type" data-tsd-kind="Interface">DeviceInfo</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getgeofence" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Geofence</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Geofence<span class="tsd-signature-symbol">(</span>identifier<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>geofence<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Fetch a single <a href="../interfaces/geofence.html">Geofence</a> by identifier from the SDK&#39;s database.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> geofence </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getGeofence</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;HOME&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[getGeofence] &quot;</span><span style="color: #F8F8F2">, geofence);</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>identifier: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>geofence<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>geofence<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>geofence: <a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getgeofences" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Geofences</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Geofences<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>geofences<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Fetch a list of all <a href="../interfaces/geofence.html">Geofence</a> in the SDK&#39;s database.  If there are no geofences being monitored, you&#39;ll receive an empty <code>Array</code>.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> geofences </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getGeofences</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[getGeofences: &quot;</span><span style="color: #F8F8F2">, geofences);</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>geofences<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>geofences<span class="tsd-signature-symbol">: </span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>geofences: <a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/geofence.html" class="tsd-signature-type" data-tsd-kind="Interface">Geofence</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getlocations" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Locations</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Locations<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>locations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Retrieve a List of <a href="../interfaces/location.html">Location</a> currently stored in the SDK&#39;s SQLite database.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> locations </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getLocations</span><span style="color: #F8F8F2">();</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>locations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>locations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>locations: <span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getlog" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Log</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Log<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>log<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-deprecated">deprecated</dt>
									<dd><p>Use <a href="../interfaces/logger.html#getlog">Logger.getLog</a>.</p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>log<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>log<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>log: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getodometer" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Odometer</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Odometer<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>odometer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Retrieve the current distance-traveled (&quot;odometer&quot;).</p>
								</div>
								<p>The plugin constantly tracks distance traveled, computing the distance between the current location and last and maintaining the sum.  To fetch the
								current <strong>odometer</strong> reading:</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> odometer </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getOdometer</span><span style="color: #F8F8F2">();</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="../interfaces/config.html#desiredodometeraccuracy">desiredOdometerAccuracy</a>.</li>
											<li><a href="backgroundgeolocation.html#resetodometer">resetOdometer</a> / <a href="backgroundgeolocation.html#setodometer">setOdometer</a>.</li>
										</ul>
										<a href="#⚠️-warning" id="⚠️-warning" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Warning:</h3>
										</a>
										<ul>
											<li>Odometer calculations are dependent upon the accuracy of received locations.  If location accuracy is poor, this will necessarily introduce error into odometer calculations.</li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>odometer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>odometer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>odometer: <span class="tsd-signature-type">number</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getproviderstate" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Provider<wbr>State</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Provider<wbr>State<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Retrieves the current state of location-provider authorization.</p>
								</div>
								<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
									<h3>ℹ️ See also:</h3>
								</a>
								<ul>
									<li>You can also <em>listen</em> for changes in location-authorization using the event <a href="backgroundgeolocation.html#onproviderchange">onProviderChange</a>.</li>
								</ul>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> providerState </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getProviderState</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;- Provider state: &quot;</span><span style="color: #F8F8F2">, providerState);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/providerchangeevent.html" class="tsd-signature-type" data-tsd-kind="Interface">ProviderChangeEvent</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getsensors" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Sensors</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Sensors<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>sensors<span class="tsd-signature-symbol">: </span><a href="../interfaces/sensors.html" class="tsd-signature-type" data-tsd-kind="Interface">Sensors</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/sensors.html" class="tsd-signature-type" data-tsd-kind="Interface">Sensors</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Returns the presence of device sensors <em>accelerometer</em>, <em>gyroscope</em>, <em>magnetometer</em></p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-break">break</dt>
									<dd><p>These core <a href="../interfaces/sensors.html">Sensors</a> are used by the motion activity-recognition system -- when any of these sensors are missing from a device (particularly on cheap
										Android devices), the performance of the motion activity-recognition system will be <strong>severely</strong> degraded and highly inaccurate.</p>
										<p>For devices which <em>are</em> missing any of these sensors, you can increase the motion-detection sensitivity by decreasing
										<a href="../interfaces/config.html#minimumactivityrecognitionconfidence">minimumActivityRecognitionConfidence</a>.</p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> sensors </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.sensors;</span>
<span style="color: #F8F8F2">console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(sensors);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>sensors<span class="tsd-signature-symbol">: </span><a href="../interfaces/sensors.html" class="tsd-signature-type" data-tsd-kind="Interface">Sensors</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>sensors<span class="tsd-signature-symbol">: </span><a href="../interfaces/sensors.html" class="tsd-signature-type" data-tsd-kind="Interface">Sensors</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>sensors: <a href="../interfaces/sensors.html" class="tsd-signature-type" data-tsd-kind="Interface">Sensors</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/sensors.html" class="tsd-signature-type" data-tsd-kind="Interface">Sensors</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getstate" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>State</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>State<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Return the current <a href="../interfaces/state.html">State</a> of the plugin, including all <a href="../interfaces/config.html">Config</a> parameters.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> state </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getState</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[state] &quot;</span><span style="color: #F8F8F2">, state.enabled, state.trackingMode);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="insertlocation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> insert<wbr>Location</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">insert<wbr>Location<span class="tsd-signature-symbol">(</span>params<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>params: <a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>location: <a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="ispowersavemode" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr>Power<wbr>Save<wbr>Mode</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">is<wbr>Power<wbr>Save<wbr>Mode<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Fetches the state of the operating-system&#39;s &quot;Power Saving&quot; mode.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-break">break</dt>
									<dd><p>Power Saving mode can throttle certain services in the background, such as HTTP requests or GPS.</p>
										<p> ℹ️ You can listen to changes in the state of &quot;Power Saving&quot; mode from the event <a href="backgroundgeolocation.html#onpowersavechange">onPowerSaveChange</a>.</p>
										<a href="#ios" id="ios" style="color: inherit; text-decoration: none;">
											<h3>iOS</h3>
										</a>
										<p>iOS Power Saving mode can be engaged manually by the user in <strong>Settings -&gt; Battery</strong> or from an automatic OS dialog.</p>
										<p><img src="https://dl.dropboxusercontent.com/s/lz3zl2jg4nzstg3/Screenshot%202017-09-19%2010.34.21.png?dl=1" alt=""></p>
										<a href="#android" id="android" style="color: inherit; text-decoration: none;">
											<h3>Android</h3>
										</a>
										<p>Android Power Saving mode can be engaged manually by the user in <strong>Settings -&gt; Battery -&gt; Battery Saver</strong> or automatically with a user-specified
										&quot;threshold&quot; (eg: 15%).</p>
										<p><img src="https://dl.dropboxusercontent.com/s/raz8lagrqayowia/Screenshot%202017-09-19%2010.33.49.png?dl=1" alt=""></p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> isPowerSaveMode </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.isPowerSaveMode;</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>enabled: <span class="tsd-signature-type">boolean</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="onauthorization" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Authorization</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Authorization<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/authorizationevent.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthorizationEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Subscribe to <a href="../interfaces/authorization.html">Authorization</a> events.</p>
								</div>
								<p>Fired when <a href="../interfaces/authorization.html#refreshurl">Authorization.refreshUrl</a> responds, either successfully or not.  If successful, <a href="../interfaces/authorizationevent.html#success">AuthorizationEvent.success</a> will be <code>true</code> and <a href="../interfaces/authorizationevent.html#response">AuthorizationEvent.response</a> will
								contain the decoded JSON response returned from the server.</p>
								<p>If authorization failed, <a href="../interfaces/authorizationevent.html#error">AuthorizationEvent.error</a> will contain the error message.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onAuthorization</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #F92672">if</span><span style="color: #F8F8F2"> (event.success) {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[authorization] ERROR: &quot;</span><span style="color: #F8F8F2">, event.error);</span>
<span style="color: #F8F8F2">  } </span><span style="color: #F92672">else</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[authorization] SUCCESS: &quot;</span><span style="color: #F8F8F2">, event.response);</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/authorizationevent.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthorizationEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/authorizationevent.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthorizationEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/authorizationevent.html" class="tsd-signature-type" data-tsd-kind="Interface">AuthorizationEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="onnotificationaction" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> on<wbr>Notification<wbr>Action</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Notification<wbr>Action<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>buttonId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>[<strong>Android-only</strong>] Subscribe to button-clicks of a custom <a href="../interfaces/notification.html#layout">Notification.layout</a> on the Android foreground-service notification.</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>buttonId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>buttonId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>buttonId: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="../interfaces/subscription.html" class="tsd-signature-type" data-tsd-kind="Interface">Subscription</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="playsound" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> play<wbr>Sound</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">play<wbr>Sound<span class="tsd-signature-symbol">(</span>soundId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>soundId: <span class="tsd-signature-type">any</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="ready" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> ready</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">ready<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Signal to the plugin that your app is launched and ready, proving the default <a href="../interfaces/config.html">Config</a>.</p>
								</div>
								<p>The supplied <a href="../interfaces/config.html">Config</a> will be applied <strong>only at first install</strong> of your app — for every launch thereafter,
									the plugin will automatically load its last-known configuration from persistent storage.
								The plugin always remembers the configuration you apply to it.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,</span>
<span style="color: #F8F8F2">  distanceFilter: </span><span style="color: #AE81FF">10</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  stopOnTerminate: </span><span style="color: #AE81FF">false</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  startOnBoot: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  url: </span><span style="color: #E6DB74">&quot;http://your.server.com&quot;</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  headers: {</span>
<span style="color: #F8F8F2">   </span><span style="color: #E6DB74">&quot;my-auth-token&quot;</span><span style="color: #F8F8F2">: </span><span style="color: #E6DB74">&quot;secret-token&quot;</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2"> console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[ready] success&quot;</span><span style="color: #F8F8F2">, state);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#⚠️-warning-you-must-call-readyconfg-once-and-only-once-each-time-your-app-is-launched" id="⚠️-warning-you-must-call-readyconfg-once-and-only-once-each-time-your-app-is-launched" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Warning: You must call <strong><code>.ready(confg)</code></strong> <strong>once</strong> and <strong>only</strong> once, each time your app is launched.</h3>
										</a>
										<ul>
											<li>Do not hide the call to <code>#ready</code> within a view which is loaded only by clicking a UI action.  This is particularly important
											for iOS in the case where the OS relaunches your app in the background when the device is detected to be moving.  If you don&#39;t ensure that <code>#ready</code> is called in this case, tracking will not resume.</li>
										</ul>
										<a href="#the-reset-method" id="the-reset-method" style="color: inherit; text-decoration: none;">
											<h3>The <a href="backgroundgeolocation.html#reset">reset</a> method.</h3>
										</a>
										<p>If you wish, you can use the <a href="backgroundgeolocation.html#reset">reset</a> method to reset all <a href="../interfaces/config.html">Config</a> options to documented default-values (with optional overrides):</p>
										<a href="#configreset-false" id="configreset-false" style="color: inherit; text-decoration: none;">
											<h3><a href="../interfaces/config.html#reset">Config.reset</a>: false</h3>
										</a>
										<p>Configuring the plugin with <strong><code>reset: false</code></strong> should generally be avoided unless you know <em>exactly</em> what it does.  People often find this from the <em>Demo</em> app.  If you do configure <code>reset: false</code>, you&#39;ll find that your <code>Config</code> provided to <code>.ready</code> is consumed <strong>only at first launch after install</strong>.  Thereafter, the plugin will ignore any changes you&#39;ve provided there.  The only way to change the config then is to use <a href="backgroundgeolocation.html#setconfig">setConfig</a>.</p>
										<p>You will especially not want to use <code>reset: false</code> during development, while you&#39;re fine-tuning your <code>Config</code> options.</p>
										<p>The reason the <em>Demo</em> app uses <code>reset: false</code> is because it hosts an advanced &quot;<em>Settings</em>&quot; screen to tune the <code>Config</code> at runtime and we don&#39;t want those runtime changes to be overwritten by <code>.ready(config)</code> each time the app launches.</p>
										<p>⚠️ If you <em>don&#39;t</em> undestand what <strong><code>reset: false</code></strong> does, <strong>NO NOT USE IT</strong>.  If you blindly copy/pasted it from the <em>Demo</em> app, <strong>REMOVE IT</strong> from your <code>Config</code>.</p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">reset</span><span style="color: #F8F8F2">();</span>
<span style="color: #88846F">// Reset to documented default-values with overrides</span>
<span style="color: #F8F8F2">bgGeo.</span><span style="color: #A6E22E">reset</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  distanceFilter:  </span><span style="color: #AE81FF">10</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>config: <a href="../interfaces/config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="registerheadlesstask" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> register<wbr>Headless<wbr>Task</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">register<wbr>Headless<wbr>Task<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/headlessevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeadlessEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Registers a Javascript callback to execute in the Android &quot;Headless&quot; state, where the app has been terminated configured with
									<a href="../interfaces/config.html#stoponterminate">stopOnTerminate</a><code>:false</code>.  * The received <code>event</code> object contains a <code>name</code> (the event name) and <code>params</code> (the event data-object).</p>
								</div>
								<a href="#⚠️-note-cordova-amp-capacitor" id="⚠️-note-cordova-amp-capacitor" style="color: inherit; text-decoration: none;">
									<h3>⚠️ Note Cordova &amp; Capacitor</h3>
								</a>
								<ul>
									<li>Javascript headless callbacks are not supported by Cordova or Capacitor.  See <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Android-Headless-Mode">Android Headless Mode</a></li>
								</ul>
								<a href="#⚠️-warning" id="⚠️-warning" style="color: inherit; text-decoration: none;">
									<h3>⚠️ Warning:</h3>
								</a>
								<ul>
									<li>You <strong>must</strong> <code>registerHeadlessTask</code> in your application root file (eg: <code>index.js</code>).</li>
								</ul>
								<a href="#⚠️-warning-1" id="⚠️-warning-1" style="color: inherit; text-decoration: none;">
									<h3>⚠️ Warning:</h3>
								</a>
								<ul>
									<li>Your <code>function</code> <strong>must</strong> be declared as <code>async</code>.  You must <code>await</code> all work within your task.  Your headless-task will automatically be terminated after executing the last line of your function.</li>
								</ul>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> </span><span style="color: #A6E22E">BackgroundGeolocationHeadlessTask</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">async</span><span style="color: #F8F8F2"> (</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> params </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> event.params;</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[BackgroundGeolocation HeadlessTask] -&quot;</span><span style="color: #F8F8F2">, event.name, params);</span>

<span style="color: #F8F8F2">  </span><span style="color: #F92672">switch</span><span style="color: #F8F8F2"> (event.name) {</span>
<span style="color: #F8F8F2">    </span><span style="color: #F92672">case</span><span style="color: #F8F8F2"> </span><span style="color: #E6DB74">&quot;terminate&quot;</span><span style="color: #F8F8F2">:</span>
<span style="color: #F8F8F2">      </span><span style="color: #88846F">// Use await for async tasks</span>
<span style="color: #F8F8F2">      </span><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> location </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">getCurrentPosition</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">        samples: </span><span style="color: #AE81FF">1</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">        persist: </span><span style="color: #AE81FF">false</span>
<span style="color: #F8F8F2">      });</span>
<span style="color: #F8F8F2">      console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[BackgroundGeolocation HeadlessTask] - getCurrentPosition:&quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">      </span><span style="color: #F92672">break</span><span style="color: #F8F8F2">;</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// You must await all work you do in your task.  </span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Headless-tasks are automatically terminated after executing the last line of your function.</span>
<span style="color: #F8F8F2">  </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> </span><span style="color: #A6E22E">doWork</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">}</span>

<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">registerHeadlessTask</span><span style="color: #F8F8F2">(BackgroundGeolocationHeadlessTask);</span>
</code></pre>
										<a href="#debugging" id="debugging" style="color: inherit; text-decoration: none;">
											<h3>Debugging</h3>
										</a>
										<p>While implementing your headless-task It&#39;s crucial to observe your Android logs in a terminal via</p>
										<pre><code class="language-bash"><span style="color: #F8F8F2">$ adb logcat </span><span style="color: #F92672">*</span><span style="color: #F8F8F2">:S TSLocationManager:V ReactNativeJS:V</span>

<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask onHeadlessEvent] 💀  event: connectivitychange</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask createReactContextAndScheduleTask] initialize ReactContext</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask onHeadlessEvent] 💀  event: providerchange</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask onHeadlessEvent] 💀  event: terminate</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #E6DB74">&#039;[BGGeoHeadlessTask] &#039;</span><span style="color: #F8F8F2">, </span><span style="color: #E6DB74">&#039;connectivitychange&#039;</span><span style="color: #F8F8F2">, taskId: 1</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask invokeStartTask] taskId: 1</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask invokeStartTask] taskId: 2</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask invokeStartTask] taskId: 3</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #E6DB74">&#039;[BGGeoHeadlessTask] &#039;</span><span style="color: #F8F8F2">, </span><span style="color: #E6DB74">&#039;providerchange&#039;</span><span style="color: #F8F8F2">, taskId: 2</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #E6DB74">&#039;[BGGeoHeadlessTask] &#039;</span><span style="color: #F8F8F2">, </span><span style="color: #E6DB74">&#039;terminate&#039;</span><span style="color: #F8F8F2">, taskId: 3</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.l.u.BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 1</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.l.u.BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 2</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #F92672">***</span><span style="color: #F8F8F2"> [doWork] START</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #F92672">***</span><span style="color: #F8F8F2"> [doWork] START</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.l.u.BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 3</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #F92672">***</span><span style="color: #F8F8F2"> [doWork] START</span>
<span style="color: #66D9EF">.</span>
<span style="color: #66D9EF">.</span>
<span style="color: #66D9EF">.</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #F92672">***</span><span style="color: #F8F8F2"> [doWork] FINISH</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #F92672">***</span><span style="color: #F8F8F2"> [doWork] FINISH</span>
<span style="color: #F8F8F2">ReactNativeJS: </span><span style="color: #F92672">***</span><span style="color: #F8F8F2"> [doWork] FINISH</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.l.u.BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 1</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.l.u.BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 2</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.l.u.BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: 3</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask$1 onHeadlessJsTaskFinish] taskId: 1</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask$1 onHeadlessJsTaskFinish] taskId: 2</span>
<span style="color: #F8F8F2">TSLocationManager: [c.t.r.HeadlessTask$1 onHeadlessJsTaskFinish] taskId: 3</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Android-Headless-Mode">Android Headless Mode</a>.</li>
											<li><a href="../interfaces/config.html#enableheadless">Config.enableHeadless</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/headlessevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeadlessEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="../interfaces/headlessevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeadlessEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>event: <a href="../interfaces/headlessevent.html" class="tsd-signature-type" data-tsd-kind="Interface">HeadlessEvent</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="removealllisteners" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> remove<wbr>All<wbr>Listeners</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">remove<wbr>All<wbr>Listeners<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Alias for <a href="backgroundgeolocation.html#removelisteners">removeListeners</a></p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="removegeofence" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> remove<wbr>Geofence</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">remove<wbr>Geofence<span class="tsd-signature-symbol">(</span>identifier<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Removes a <a href="../interfaces/geofence.html">Geofence</a> having the given <a href="../interfaces/geofence.html#identifier">Geofence.identifier</a>.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">removeGeofence</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;Home&quot;</span><span style="color: #F8F8F2">).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">success</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[removeGeofence] success&quot;</span><span style="color: #F8F8F2">);</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">catch</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">error</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[removeGeofence] FAILURE: &quot;</span><span style="color: #F8F8F2">, error);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>identifier: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="removegeofences" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> remove<wbr>Geofences</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">remove<wbr>Geofences<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Destroy all <a href="../interfaces/geofence.html">Geofence</a></p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">removeGeofences</span><span style="color: #F8F8F2">();</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="removelistener" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> remove<wbr>Listener</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">remove<wbr>Listener<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, handler<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-deprecated.">deprecated.</dt>
									<dd><p>Use <a href="../interfaces/subscription.html">Subscription</a> returned from <strong><code>BackgroundGeolocation.onXXX</code></strong> to remove listeners.</p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> subscription </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">onLocation</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&#039;[onLocation]&#039;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">});</span>
<span style="color: #F8F8F2">.</span>
<span style="color: #F8F8F2">.</span>
<span style="color: #F8F8F2">.</span>
<span style="color: #88846F">// Remove listener</span>
<span style="color: #F8F8F2">subscription.</span><span style="color: #A6E22E">remove</span><span style="color: #F8F8F2">();</span>
</code></pre>
										<hr>
										<a href="#⚠️-deprecated" id="⚠️-deprecated" style="color: inherit; text-decoration: none;">
											<h3>⚠️ [Deprecated]</h3>
										</a>
										<p>Removes an event listener.  You must supply the <em>type</em> of event to remove in addition to a reference to the <em>exact</em> function you
										used to subscribe to the event.</p>
										<table>
											<thead>
												<tr>
													<th>Event</th>
												</tr>
											</thead>
											<tbody><tr>
													<td><code>location</code></td>
												</tr>
												<tr>
													<td><code>motionchange</code></td>
												</tr>
												<tr>
													<td><code>activitychange</code></td>
												</tr>
												<tr>
													<td><code>providerchange</code></td>
												</tr>
												<tr>
													<td><code>geofence</code></td>
												</tr>
												<tr>
													<td><code>geofenceschange</code></td>
												</tr>
												<tr>
													<td><code>heartbeat</code></td>
												</tr>
												<tr>
													<td><code>http</code></td>
												</tr>
												<tr>
													<td><code>powersavechange</code></td>
												</tr>
												<tr>
													<td><code>schedule</code></td>
												</tr>
												<tr>
													<td><code>connectivitychange</code></td>
												</tr>
												<tr>
													<td><code>enabledchange</code></td>
												</tr>
										</tbody></table>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #66D9EF">const</span><span style="color: #F8F8F2"> </span><span style="color: #A6E22E">locationHandler</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> (</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[location] - &quot;</span><span style="color: #F8F8F2">, location)</span>
<span style="color: #F8F8F2">}</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onLocation</span><span style="color: #F8F8F2">(locationHandler)</span>
<span style="color: #F8F8F2">.</span>
<span style="color: #F8F8F2">.</span>
<span style="color: #88846F">// Remove the listener providing a reference to the original callback.</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">removeListener</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;location&quot;</span><span style="color: #F8F8F2">, locationHandler)</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>event: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>handler: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="removelisteners" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> remove<wbr>Listeners</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">remove<wbr>Listeners<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Removes all event-listeners.</p>
								</div>
								<p>Calls <a href="../interfaces/subscription.html#remove">Subscription.remove</a> on all subscriptions.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">removeListeners</span><span style="color: #F8F8F2">();</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="requestpermission" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> request<wbr>Permission</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">request<wbr>Permission<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>status<span class="tsd-signature-symbol">: </span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>status<span class="tsd-signature-symbol">: </span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Manually request location permission from the user with the configured <a href="../interfaces/config.html#locationauthorizationrequest">Config.locationAuthorizationRequest</a>.</p>
								</div>
								<p>The method will resolve successful if <em>either</em> <strong><code>WhenInUse</code></strong> or <strong><code>Always</code></strong> is authorized, regardless of <a href="../interfaces/config.html#locationauthorizationrequest">Config.locationAuthorizationRequest</a>.  Otherwise an error will be returned (eg: user denies location permission).</p>
								<p>If the user has already provided authorization for location-services, the method will resolve successfully immediately.</p>
								<p>If iOS has <em>already</em> presented the location authorization dialog and the user has not currently authorized your desired <a href="../interfaces/config.html#locationauthorizationrequest">Config.locationAuthorizationRequest</a>, the SDK will present an error dialog offering to direct the user to your app&#39;s Settings screen.</p>
								<ul>
									<li>To disable this behaviour, see <a href="../interfaces/config.html#disablelocationauthorizationalert">Config.disableLocationAuthorizationAlert</a>.</li>
									<li>To customize the text on this dialog, see <a href="../interfaces/config.html#locationauthorizationalert">Config.locationAuthorizationAlert</a>.</li>
								</ul>
								<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
									<h3>⚠️ Note:</h3>
								</a>
								<ul>
									<li>The SDK will <strong>already request permission</strong> from the user when you execute <a href="backgroundgeolocation.html#start">start</a>, <a href="backgroundgeolocation.html#startgeofences">startGeofences</a>, <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a>, etc.  You <strong>do not need to explicitly execute this method</strong> with typical use-cases.</li>
								</ul>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">async </span><span style="color: #A6E22E">componentDidMount</span><span style="color: #F8F8F2">() {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Listen to onProviderChange to be notified when location authorization changes occur.</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">onProviderChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&#039;[providerchange]&#039;</span><span style="color: #F8F8F2">, event);</span>
<span style="color: #F8F8F2">  });</span>

<span style="color: #F8F8F2">  </span><span style="color: #88846F">// First ready the plugin with your configuration.</span>
<span style="color: #F8F8F2">  </span><span style="color: #66D9EF">let</span><span style="color: #F8F8F2"> state </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">    locationAuthorizationRequest: </span><span style="color: #E6DB74">&#039;Always&#039;</span>
<span style="color: #F8F8F2">  });</span>

<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Manually request permission with configured locationAuthorizationRequest.</span>
<span style="color: #F8F8F2">  </span><span style="color: #F92672">try</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    int status </span><span style="color: #F92672">=</span><span style="color: #F8F8F2"> </span><span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">requestPermission</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&#039;[requestPermission] success: &#039;</span><span style="color: #F8F8F2">, status);</span>
<span style="color: #F8F8F2">  } </span><span style="color: #F92672">catch</span><span style="color: #F8F8F2">(status) {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">warn</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&#039;[requestPermission] FAILURE: &#039;</span><span style="color: #F8F8F2">, status);</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">}</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="../interfaces/config.html#locationauthorizationrequest">Config.locationAuthorizationRequest</a></li>
											<li><a href="../interfaces/config.html#disablelocationauthorizationalert">Config.disableLocationAuthorizationAlert</a></li>
											<li><a href="../interfaces/config.html#locationauthorizationalert">Config.locationAuthorizationAlert</a></li>
											<li><a href="../interfaces/config.html#backgroundpermissionrationale">Config.backgroundPermissionRationale</a> (<em>Android 11+</em>)</li>
											<li><a href="backgroundgeolocation.html#requesttemporaryfullaccuracy">requestTemporaryFullAccuracy</a> (<em>iOS 14+</em>)</li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>status<span class="tsd-signature-symbol">: </span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>status<span class="tsd-signature-symbol">: </span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>status: <a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>status<span class="tsd-signature-symbol">: </span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>status<span class="tsd-signature-symbol">: </span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>status: <a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../index.html#authorizationstatus" class="tsd-signature-type" data-tsd-kind="Type alias">AuthorizationStatus</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="requesttemporaryfullaccuracy" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> request<wbr>Temporary<wbr>Full<wbr>Accuracy</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">request<wbr>Temporary<wbr>Full<wbr>Accuracy<span class="tsd-signature-symbol">(</span>purpose<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../index.html#accuracyauthorization" class="tsd-signature-type" data-tsd-kind="Type alias">AccuracyAuthorization</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p><strong><code>[iOS 14+]</code></strong> iOS 14 has introduced a new <strong><code>[Precise: On]</code></strong> switch on the location authorization dialog allowing users to disable high-accuracy location.</p>
								</div>
								<p>The method <a href="https://developer.apple.com/documentation/corelocation/cllocationmanager/3600217-requesttemporaryfullaccuracyauth?language=objc"><code>requestTemporaryFullAccuracy</code> (Apple docs)</a> will allow you to present a dialog to the user requesting temporary <em>full accuracy</em> for the lifetime of this application run (until terminate).</p>
								<p><img src="https://dl.dropbox.com/s/dj93xpg51vspqk0/ios-14-precise-on.png?dl=1" alt=""></p>
								<a href="#configuration-mdash-infoplist" id="configuration-mdash-infoplist" style="color: inherit; text-decoration: none;">
									<h2>Configuration &mdash; <code>Info.plist</code></h2>
								</a>
								<p>In order to use this method, you must configure your <strong><code>Info.plist</code></strong> with the <code>Dictionary</code> key:
								<strong><code>Privacy - Location Temporary Usage Description Dictionary</code></strong></p>
								<p><img src="https://dl.dropbox.com/s/52f5lnjc4d9g8w7/ios-14-Privacy-Location-Temporary-Usage-Description-Dictionary.png?dl=1" alt=""></p>
								<p>The keys of this <code>Dictionary</code> (eg: <code>Delivery</code>) are supplied as the first argument to the method.  The <code>value</code> will be printed on the dialog shown to the user, explaing the purpose of your request for full accuracy.</p>
								<p>If the dialog fails to be presented, an error will be thrown:</p>
								<ul>
									<li>The Info.plist file doesn’t have an entry for the given purposeKey value.</li>
									<li>The app is already authorized for full accuracy.</li>
									<li>The app is in the background.</li>
								</ul>
								<p><img src="https://dl.dropbox.com/s/8cc0sniv3pvpetl/ios-14-requestTemporaryFullAccuracy.png?dl=1" alt=""></p>
								<p><strong>Note:</strong> Android and older versions of iOS <code>&lt; 14</code> will return <a href="backgroundgeolocation.html#accuracy_authorization_full">BackgroundGeolocation.ACCURACY_AUTHORIZATION_FULL</a>.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-javascript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onProviderChange</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #F92672">if</span><span style="color: #F8F8F2"> (event.accuracyAuthorization </span><span style="color: #F92672">==</span><span style="color: #F8F8F2"> BackgroundGeolocation.ACCURACY_AUTHORIZATION_REDUCED) {</span>
<span style="color: #F8F8F2">    </span><span style="color: #88846F">// Supply &quot;Purpose&quot; key from Info.plist as 1st argument.</span>
<span style="color: #F8F8F2">    BackgroundGeolocation.</span><span style="color: #A6E22E">requestTemporaryFullAccuracy</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;Delivery&quot;</span><span style="color: #F8F8F2">).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">accuracyAuthorization</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">      </span><span style="color: #F92672">if</span><span style="color: #F8F8F2"> (accuracyAuthorization </span><span style="color: #F92672">==</span><span style="color: #F8F8F2"> BackgroundGeolocation.ACCURACY_AUTHORIZATION_FULL) {</span>
<span style="color: #F8F8F2">        console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&#039;[requestTemporaryFullAccuracy] GRANTED: &#039;</span><span style="color: #F8F8F2">, accuracyAuthorization);</span>
<span style="color: #F8F8F2">      } </span><span style="color: #F92672">else</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">        console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&#039;[requestTemporaryFullAccuracy] DENIED: &#039;</span><span style="color: #F8F8F2">, accuracyAuthorization);</span>
<span style="color: #F8F8F2">      }</span>
<span style="color: #F8F8F2">    }).</span><span style="color: #A6E22E">catch</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">error</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">      console.</span><span style="color: #A6E22E">warn</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[requestTemporaryFullAccuracy] FAILED TO SHOW DIALOG: &quot;</span><span style="color: #F8F8F2">, error);</span>
<span style="color: #F8F8F2">    });</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<p><strong>See also:</strong></p>
										<ul>
											<li><a href="../interfaces/providerchangeevent.html#accuracyauthorization">ProviderChangeEvent.accuracyAuthorization</a>.</li>
											<li><a href="https://levelup.gitconnected.com/whats-new-with-corelocation-in-ios-14-bd28421c95c4">What&#39;s new in iOS 14 <code>CoreLocation</code></a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>purpose: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../index.html#accuracyauthorization" class="tsd-signature-type" data-tsd-kind="Type alias">AccuracyAuthorization</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="reset" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> reset</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">reset<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">?: </span><a href="../interfaces/config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Resets the plugin configuration to documented default-values.</p>
								</div>
								<p>If an optional <a href="../interfaces/config.html">Config</a> is provided, it will be applied <em>after</em> the configuration reset.</p>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="../interfaces/config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="resetodometer" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> reset<wbr>Odometer</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">reset<wbr>Odometer<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Initialize the <code>odometer</code> to <code>0</code>.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">resetOdometer</span><span style="color: #F8F8F2">().</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// This is the location where odometer was set at.</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[setOdometer] success: &quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Note:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#resetodometer">resetOdometer</a> will internally perform a <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a> in order the record to exact location <em>where</em> odometer was set.</li>
											<li><a href="backgroundgeolocation.html#resetodometer">resetOdometer</a> is the same as <a href="backgroundgeolocation.html#setodometer">setOdometer</a><code>:0</code>.</li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="setconfig" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr>Config</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Config<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Re-configure the SDK&#39;s <a href="../interfaces/config.html">Config</a> parameters.  This is the method to use when you wish to <em>change</em>
									the plugin <a href="../interfaces/config.html">Config</a> <em>after</em> <a href="backgroundgeolocation.html#ready">ready</a> has been executed.</p>
								</div>
								<p>The supplied <a href="../interfaces/config.html">Config</a> will be appended to the current configuration and applied in realtime.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">setConfig</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  desiredAccuracy: Config.DESIRED_ACCURACY_HIGH,</span>
<span style="color: #F8F8F2">  distanceFilter: </span><span style="color: #AE81FF">100.0</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  stopOnTerminate: </span><span style="color: #AE81FF">false</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  startOnBoot: </span><span style="color: #AE81FF">true</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[setConfig] success: &quot;</span><span style="color: #F8F8F2">, state);</span>
<span style="color: #F8F8F2">})</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>config: <a href="../interfaces/config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="setloglevel" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr>Log<wbr>Level</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Log<wbr>Level<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Sets the <a href="../interfaces/config.html#loglevel">logLevel</a>.</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>value: <a href="../index.html#loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">LogLevel</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="setodometer" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr>Odometer</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Odometer<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Initialize the <code>odometer</code> to <em>any</em> arbitrary value.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">setOdometer</span><span style="color: #F8F8F2">(</span><span style="color: #AE81FF">1234.56</span><span style="color: #F8F8F2">).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// This is the location where odometer was set at.</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[setOdometer] success: &quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Note:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#setodometer">setOdometer</a> will internally perform a <a href="backgroundgeolocation.html#getcurrentposition">getCurrentPosition</a> in order to record the exact location <em>where</em> odometer was set.</li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>value: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>location: <a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="start" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> start</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">start<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, error<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Enable location + geofence tracking.</p>
								</div>
								<p>This is the SDK&#39;s power <strong>ON</strong> button.  The plugin will initially start into its <strong>stationary</strong> state, fetching an initial location before
									turning off location services.  Android will be monitoring its <strong>Activity Recognition System</strong> while iOS will create a stationary geofence around
								the current location.</p>
								<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
									<h3>⚠️ Note:</h3>
								</a>
								<p>If you&#39;ve configured a <a href="../interfaces/config.html#schedule">schedule</a>, this method will override that schedule and engage tracking immediately.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">start</span><span style="color: #F8F8F2">().</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[start] success - &quot;</span><span style="color: #F8F8F2">, state);</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#stop">stop</a></li>
											<li><a href="backgroundgeolocation.html#startgeofences">startGeofences</a></li>
											<li>📘 <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Philosophy-of-Operation">Philosophy of Operation</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> error: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="startbackgroundtask" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> start<wbr>Background<wbr>Task</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">start<wbr>Background<wbr>Task<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>taskId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Sends a signal to OS that you wish to perform a long-running task.</p>
								</div>
								<p>The OS will keep your running in the background and not suspend it until you signal completion with the <a href="backgroundgeolocation.html#stopbackgroundtask">stopBackgroundTask</a> method.  Your callback will be provided with a single parameter <code>taskId</code>
								which you will send to the <a href="backgroundgeolocation.html#stopbackgroundtask">stopBackgroundTask</a> method.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #A6E22E">onLocation</span><span style="color: #F8F8F2">(location) {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[location] &quot;</span><span style="color: #F8F8F2">, location);</span>

<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Perform some long-running task (eg: HTTP request)</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">startBackgroundTask</span><span style="color: #F8F8F2">().</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">taskId</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    performLongRunningTask.</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">(() </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">      </span><span style="color: #88846F">// When your long-running task is complete, signal completion of taskId.</span>
<span style="color: #F8F8F2">      BackgroundGeolocation.</span><span style="color: #A6E22E">stopBackgroundTask</span><span style="color: #F8F8F2">(taskId);</span>
<span style="color: #F8F8F2">    }).</span><span style="color: #A6E22E">catch</span><span style="color: #F8F8F2">(error) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">      </span><span style="color: #88846F">// Be sure to catch errors:  never leave you background-task hanging.</span>
<span style="color: #F8F8F2">      console.</span><span style="color: #A6E22E">error</span><span style="color: #F8F8F2">(error);</span>
<span style="color: #F8F8F2">      BackgroundGeolocation.</span><span style="color: #A6E22E">stopBackgroundTask</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">    });</span>
<span style="color: #F8F8F2">  });</span>
<span style="color: #F8F8F2">}</span>
</code></pre>
										<a href="#ios" id="ios" style="color: inherit; text-decoration: none;">
											<h3>iOS</h3>
										</a>
										<p>The iOS implementation uses <a href="https://developer.apple.com/documentation/uikit/uiapplication/1623031-beginbackgroundtaskwithexpiratio">beginBackgroundTaskWithExpirationHandler</a></p>
										<p>⚠️ iOS provides <strong>exactly</strong> 180s of background-running time.  If your long-running task exceeds this time, the plugin has a fail-safe which will
										automatically <a href="backgroundgeolocation.html#stopbackgroundtask">stopBackgroundTask</a> your <strong><code>taskId</code></strong> to prevent the OS from force-killing your application.</p>
										<p>Logging of iOS background tasks looks like this:</p>
										<pre><code><span style="color: #F8F8F2">✅</span><span style="color: #F92672">-</span><span style="color: #F8F8F2">[BackgroundTaskManager createBackgroundTask] </span><span style="color: #AE81FF">1</span>
<span style="color: #F8F8F2">.</span>
<span style="color: #F8F8F2">.</span>
<span style="color: #F8F8F2">.</span>

<span style="color: #F8F8F2">✅</span><span style="color: #F92672">-</span><span style="color: #F8F8F2">[BackgroundTaskManager stopBackgroundTask:]_block_invoke </span><span style="color: #AE81FF">1</span><span style="color: #F8F8F2"> </span><span style="color: #A6E22E">OF</span><span style="color: #F8F8F2"> (</span>
<span style="color: #F8F8F2">    </span><span style="color: #AE81FF">1</span>
<span style="color: #F8F8F2">)</span>
</code></pre>
										<a href="#android" id="android" style="color: inherit; text-decoration: none;">
											<h3>Android</h3>
										</a>
										<p>The Android implementation launches a <a href="https://developer.android.com/topic/libraries/architecture/workmanager"><code>WorkManager</code></a> task.</p>
										<p>⚠️ The Android plugin imposes a limit of <strong>3 minutes</strong> for your background-task before it automatically <code>FORCE KILL</code>s it.</p>
										<p>Logging for Android background-tasks looks like this (when you see an hourglass ⏳ icon, a foreground-service is active)</p>
										<pre><code><span style="color: #F8F8F2"> I TSLocationManager: [c.t.l.u.BackgroundTaskManager onStartJob] ⏳ startBackgroundTask: </span><span style="color: #AE81FF">6</span>
<span style="color: #F8F8F2"> .</span>
<span style="color: #F8F8F2"> .</span>
<span style="color: #F8F8F2"> .</span>
<span style="color: #F8F8F2"> I TSLocationManager: [c.t.l.u.BackgroundTaskManager$Task stop] ⏳ stopBackgroundTask: </span><span style="color: #AE81FF">6</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>taskId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>taskId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>taskId: <span class="tsd-signature-type">number</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="startgeofences" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> start<wbr>Geofences</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">start<wbr>Geofences<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Engages the geofences-only <a href="../interfaces/state.html#trackingmode">State.trackingMode</a>.</p>
								</div>
								<p>In this mode, no active location-tracking will occur &mdash; only geofences will be monitored.  To stop monitoring &quot;geofences&quot; <a href="../index.html#trackingmode">TrackingMode</a>,
								simply use the usual <a href="backgroundgeolocation.html#stop">stop</a> method.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #88846F">// Add a geofence.</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">addGeofence</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  notifyOnExit: </span><span style="color: #AE81FF">true</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  radius: </span><span style="color: #AE81FF">200</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  identifier: </span><span style="color: #E6DB74">&quot;ZONE_OF_INTEREST&quot;</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  latitude: </span><span style="color: #AE81FF">37.234232</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  longitude: </span><span style="color: #AE81FF">42.234234</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #88846F">// Listen to geofence events.</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">onGeofence</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">event</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[onGeofence] -  &quot;</span><span style="color: #F8F8F2">, event);</span>
<span style="color: #F8F8F2">});</span>

<span style="color: #88846F">// Configure the plugin</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">ready</span><span style="color: #F8F8F2">({</span>
<span style="color: #F8F8F2">  url: </span><span style="color: #E6DB74">&quot;http://my.server.com&quot;</span><span style="color: #F8F8F2">,</span>
<span style="color: #F8F8F2">  autoSync: </span><span style="color: #AE81FF">true</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">(((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Start monitoring geofences.</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">startGeofences</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#stop">stop</a></li>
											<li>📘 <a href="../interfaces/geofence.html">Geofencing Guide</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="startschedule" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> start<wbr>Schedule</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">start<wbr>Schedule<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Initiate the configured <a href="../interfaces/config.html#schedule">schedule</a>.</p>
								</div>
								<p>If a <a href="../interfaces/config.html#schedule">schedule</a> was configured, this method will initiate that schedule.  The plugin will automatically be started or stopped according to
								the configured <a href="../interfaces/config.html#schedule">schedule</a>.</p>
								<p>To halt scheduled tracking, use <a href="backgroundgeolocation.html#stopschedule">stopSchedule</a>.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.startSchedule.</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[startSchedule] success: &quot;</span><span style="color: #F8F8F2">, state);</span>
<span style="color: #F8F8F2">})</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="../interfaces/config.html#schedule">schedule</a></li>
											<li><a href="backgroundgeolocation.html#startschedule">startSchedule</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="stop" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> stop</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">stop<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, error<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Disable location and geofence monitoring.  This is the SDK&#39;s power <strong>OFF</strong> button.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">stop</span><span style="color: #F8F8F2">();</span>
</code></pre>
										<a href="#⚠️-note" id="⚠️-note" style="color: inherit; text-decoration: none;">
											<h3>⚠️ Note:</h3>
										</a>
										<p>If you&#39;ve configured a <a href="../interfaces/config.html#schedule">schedule</a>, <strong><code>#stop</code></strong> will <strong>not</strong> halt the Scheduler.  You must explicitly <a href="backgroundgeolocation.html#stopschedule">stopSchedule</a> as well:</p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #88846F">// Later when you want to stop the Scheduler (eg: user logout)</span>
<span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">stopSchedule</span><span style="color: #F8F8F2">();</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> error: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="stopbackgroundtask" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> stop<wbr>Background<wbr>Task</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">stop<wbr>Background<wbr>Task<span class="tsd-signature-symbol">(</span>taskId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Signal completion of <a href="backgroundgeolocation.html#startbackgroundtask">startBackgroundTask</a></p>
								</div>
								<p>Sends a signal to the native OS that your long-running task, addressed by <code>taskId</code> provided by <a href="backgroundgeolocation.html#startbackgroundtask">startBackgroundTask</a> is complete and the OS may proceed
								to suspend your application if applicable.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">startBackgroundTask</span><span style="color: #F8F8F2">().</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">taskId</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Perform some long-running task (eg: HTTP request)</span>
<span style="color: #F8F8F2">  performLongRunningTask.</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">(() </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    </span><span style="color: #88846F">// When your long-running task is complete, signal completion of taskId.</span>
<span style="color: #F8F8F2">    BackgroundGeolocation.</span><span style="color: #A6E22E">stopBackgroundTask</span><span style="color: #F8F8F2">(taskId);</span>
<span style="color: #F8F8F2">  });</span>
<span style="color: #F8F8F2">});</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>taskId: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="stopschedule" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> stop<wbr>Schedule</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">stop<wbr>Schedule<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Halt scheduled tracking.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.stopSchedule.</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[stopSchedule] success: &quot;</span><span style="color: #F8F8F2">, state);</span>
<span style="color: #F8F8F2">})</span>
</code></pre>
										<p>⚠️ <a href="backgroundgeolocation.html#stopschedule">stopSchedule</a> will <strong>not</strong> execute <a href="backgroundgeolocation.html#stop">stop</a> if the plugin is currently tracking.  You must explicitly execute <a href="backgroundgeolocation.html#stop">stop</a>.</p>
									</dd>
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #88846F">// Later when you want to stop the Scheduler (eg: user logout)</span>
<span style="color: #F92672">await</span><span style="color: #F8F8F2"> BackgroundGeolocation.</span><span style="color: #A6E22E">stopSchedule</span><span style="color: #F8F8F2">().</span><span style="color: #A6E22E">then</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">state</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  </span><span style="color: #F92672">if</span><span style="color: #F8F8F2"> (state.enabled) {</span>
<span style="color: #F8F8F2">    BackgroundGeolocation.</span><span style="color: #A6E22E">stop</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">  }</span>
<span style="color: #F8F8F2">})</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#startschedule">startSchedule</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>state: <a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>error: <span class="tsd-signature-type">string</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/state.html" class="tsd-signature-type" data-tsd-kind="Interface">State</a><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="stopwatchposition" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> stop<wbr>Watch<wbr>Position</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">stop<wbr>Watch<wbr>Position<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Stop watch-position updates initiated from <a href="backgroundgeolocation.html#watchposition">watchPosition</a>.</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #A6E22E">onResume</span><span style="color: #F8F8F2">() {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Start watching position while app in foreground.</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">watchPosition</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[watchPosition] -&quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">  }, (</span><span style="color: #FD971F">errorCode</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[watchPosition] ERROR -&quot;</span><span style="color: #F8F8F2">, errorCode);</span>
<span style="color: #F8F8F2">  }, {</span>
<span style="color: #F8F8F2">   interval: </span><span style="color: #AE81FF">1000</span>
<span style="color: #F8F8F2">  })</span>
<span style="color: #F8F8F2">}</span>

<span style="color: #A6E22E">onSuspend</span><span style="color: #F8F8F2">() {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Halt watching position when app goes to background.</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">stopWatchPosition</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">}</span>
</code></pre>
										<a href="#ℹ️-see-also" id="ℹ️-see-also" style="color: inherit; text-decoration: none;">
											<h3>ℹ️ See also:</h3>
										</a>
										<ul>
											<li><a href="backgroundgeolocation.html#stopwatchposition">stopWatchPosition</a></li>
										</ul>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-type">Function</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="sync" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> sync</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">sync<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>locations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Manually execute upload to configured <a href="../interfaces/config.html#url">Config.url</a></p>
								</div>
								<p>If the plugin is configured for HTTP with an <a href="../interfaces/config.html#url">Config.url</a> and <a href="../interfaces/config.html#autosync">autoSync</a> <code>false</code>, the <a href="backgroundgeolocation.html#sync">sync</a> method will initiate POSTing the locations
									currently stored in the native SQLite database to your configured <a href="../interfaces/config.html#url">Config.url</a>.  When your HTTP server returns a response of <code>200 OK</code>, that record(s)
								in the database will be DELETED.</p>
								<p>If you configured <a href="../interfaces/config.html#batchsync">batchSync</a> <code>true</code>, all the locations will be sent to your server in a single HTTP POST request, otherwise the plugin will
									execute an HTTP post for <strong>each</strong> <a href="../interfaces/location.html">Location</a> in the database (REST-style).  Your callback will be executed and provided with a <code>List</code> of all the
									locations from the SQLite database.  If you configured the plugin for HTTP (by configuring a <a href="../interfaces/config.html#url">Config.url</a>, your callback will be executed after all
									the HTTP request(s) have completed.  If the plugin failed to sync to your server (possibly because of no network connection), the failure callback will
								be called with an error message.  If you are <strong>not</strong> using the HTTP features, <a href="backgroundgeolocation.html#sync">sync</a> will delete all records from its SQLite database.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #F8F8F2">BackgroundGeolocation.</span><span style="color: #A6E22E">sync</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">records</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[sync] success: &quot;</span><span style="color: #F8F8F2">, records);</span>
<span style="color: #F8F8F2">}).</span><span style="color: #A6E22E">catch</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">error</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">  console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[sync] FAILURE: &quot;</span><span style="color: #F8F8F2">, error);</span>
<span style="color: #F8F8F2">});</span>

</code></pre>
										<p> ℹ️ For more information, see the <a href="../interfaces/httpevent.html">HTTP Guide</a></p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> success: <span class="tsd-signature-symbol">(</span>locations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>locations<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>locations: <span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-type">Function</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="transistortrackerparams" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> transistor<wbr>Tracker<wbr>Params</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">transistor<wbr>Tracker<wbr>Params<span class="tsd-signature-symbol">(</span>device<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Object</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-deprecated">deprecated</dt>
									<dd><p>Use <a href="../interfaces/config.html#transistorauthorizationtoken">Config.transistorAuthorizationToken</a></p>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>device: <span class="tsd-signature-type">Object</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Object</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="watchposition" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> watch<wbr>Position</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">watch<wbr>Position<span class="tsd-signature-symbol">(</span>success<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, failure<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/watchpositionrequest.html" class="tsd-signature-type" data-tsd-kind="Interface">WatchPositionRequest</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Start a stream of continuous location-updates.  The native code will persist the fetched location to its SQLite database
									just as any other location (If the SDK is currently <a href="../interfaces/state.html#enabled">State.enabled</a>) in addition to POSTing to your configured <a href="../interfaces/config.html#url">Config.url</a> (if you&#39;ve enabled the HTTP features).</p>
								</div>
								<a href="#⚠️-warning" id="⚠️-warning" style="color: inherit; text-decoration: none;">
									<h3>⚠️ Warning:</h3>
								</a>
								<p><code>watchPosition</code> is <strong>not</strong> recommended for <strong>long term</strong> monitoring in the background &mdash; It&#39;s primarily designed for use in the foreground <strong>only</strong>.  You might use it for fast-updates of the user&#39;s current position on the map, for example.
								The SDK&#39;s primary <a href="https://github.com/transistorsoft/react-native-background-geolocation/wiki/Philosophy-of-Operation">Philosophy of Operation</a> <strong>does not require</strong> <code>watchPosition</code>.</p>
								<a href="#ios" id="ios" style="color: inherit; text-decoration: none;">
									<h4>iOS</h4>
								</a>
								<p><code>watchPosition</code> will continue to run in the background, preventing iOS from suspending your application.  Take care to listen to <code>suspend</code> event and call <a href="backgroundgeolocation.html#stopwatchposition">stopWatchPosition</a> if you don&#39;t want your app to keep running in the background, consuming battery.</p>
								<dl class="tsd-comment-tags">
									<dt class="tsd-comment-tag-example">example</dt>
									<dd><pre><code class="language-typescript"><span style="color: #A6E22E">onResume</span><span style="color: #F8F8F2">() {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Start watching position while app in foreground.</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">watchPosition</span><span style="color: #F8F8F2">((</span><span style="color: #FD971F">location</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[watchPosition] -&quot;</span><span style="color: #F8F8F2">, location);</span>
<span style="color: #F8F8F2">  }, (</span><span style="color: #FD971F">errorCode</span><span style="color: #F8F8F2">) </span><span style="color: #66D9EF">=&gt;</span><span style="color: #F8F8F2"> {</span>
<span style="color: #F8F8F2">    console.</span><span style="color: #A6E22E">log</span><span style="color: #F8F8F2">(</span><span style="color: #E6DB74">&quot;[watchPosition] ERROR -&quot;</span><span style="color: #F8F8F2">, errorCode);</span>
<span style="color: #F8F8F2">  }, {</span>
<span style="color: #F8F8F2">    interval: </span><span style="color: #AE81FF">1000</span>
<span style="color: #F8F8F2">  })</span>
<span style="color: #F8F8F2">}</span>

<span style="color: #A6E22E">onSuspend</span><span style="color: #F8F8F2">() {</span>
<span style="color: #F8F8F2">  </span><span style="color: #88846F">// Halt watching position when app goes to background.</span>
<span style="color: #F8F8F2">  BackgroundGeolocation.</span><span style="color: #A6E22E">stopWatchPosition</span><span style="color: #F8F8F2">();</span>
<span style="color: #F8F8F2">}</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>success: <span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>location: <a href="../interfaces/location.html" class="tsd-signature-type" data-tsd-kind="Interface">Location</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> failure: <span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-type-literal">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>errorCode<span class="tsd-signature-symbol">: </span><a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-parameters-title">Parameters</h4>
													<ul class="tsd-parameters">
														<li>
															<h5>errorCode: <a href="../index.html#locationerror" class="tsd-signature-type" data-tsd-kind="Type alias">LocationError</a></h5>
														</li>
													</ul>
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/watchpositionrequest.html" class="tsd-signature-type" data-tsd-kind="Interface">WatchPositionRequest</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-3 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class">
						<a href="backgroundgeolocation.html" class="tsd-kind-icon">Background<wbr>Geolocation</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class">
								<a href="backgroundgeolocation.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onactivitychange" class="tsd-kind-icon">on<wbr>Activity<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onconnectivitychange" class="tsd-kind-icon">on<wbr>Connectivity<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onenabledchange" class="tsd-kind-icon">on<wbr>Enabled<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ongeofence" class="tsd-kind-icon">on<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ongeofenceschange" class="tsd-kind-icon">on<wbr>Geofences<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onheartbeat" class="tsd-kind-icon">on<wbr>Heartbeat</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onhttp" class="tsd-kind-icon">on<wbr>Http</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onlocation" class="tsd-kind-icon">on<wbr>Location</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onmotionchange" class="tsd-kind-icon">on<wbr>Motion<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onpowersavechange" class="tsd-kind-icon">on<wbr>Power<wbr>Save<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onproviderchange" class="tsd-kind-icon">on<wbr>Provider<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onschedule" class="tsd-kind-icon">on<wbr>Schedule</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#accuracy_authorization_full" class="tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>FULL</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#accuracy_authorization_reduced" class="tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>REDUCED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_airborne" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AIRBORNE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_automotive_navigation" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AUTOMOTIVE_<wbr>NAVIGATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_fitness" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>FITNESS</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_other" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_other_navigation" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER_<wbr>NAVIGATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_always" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>ALWAYS</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_denied" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>DENIED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_not_determined" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>NOT_<wbr>DETERMINED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_restricted" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>RESTRICTED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_when_in_use" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>WHEN_<wbr>IN_<wbr>USE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_high" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>HIGH</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_low" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOW</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_lowest" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOWEST</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_medium" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>MEDIUM</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_navigation" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>NAVIGATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_very_low" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>VERY_<wbr>LOW</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_activitychange" class="tsd-kind-icon">EVENT_<wbr>ACTIVITYCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_authorization" class="tsd-kind-icon">EVENT_<wbr>AUTHORIZATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_boot" class="tsd-kind-icon">EVENT_<wbr>BOOT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_connectivitychange" class="tsd-kind-icon">EVENT_<wbr>CONNECTIVITYCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_enabledchange" class="tsd-kind-icon">EVENT_<wbr>ENABLEDCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_geofence" class="tsd-kind-icon">EVENT_<wbr>GEOFENCE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_geofenceschange" class="tsd-kind-icon">EVENT_<wbr>GEOFENCESCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_heartbeat" class="tsd-kind-icon">EVENT_<wbr>HEARTBEAT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_http" class="tsd-kind-icon">EVENT_<wbr>HTTP</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_location" class="tsd-kind-icon">EVENT_<wbr>LOCATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_motionchange" class="tsd-kind-icon">EVENT_<wbr>MOTIONCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_notificationaction" class="tsd-kind-icon">EVENT_<wbr>NOTIFICATIONACTION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_powersavechange" class="tsd-kind-icon">EVENT_<wbr>POWERSAVECHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_providerchange" class="tsd-kind-icon">EVENT_<wbr>PROVIDERCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_schedule" class="tsd-kind-icon">EVENT_<wbr>SCHEDULE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_terminate" class="tsd-kind-icon">EVENT_<wbr>TERMINATE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_debug" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>DEBUG</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_error" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>ERROR</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_info" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>INFO</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_off" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>OFF</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_verbose" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>VERBOSE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_warning" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>WARNING</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_default" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>DEFAULT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_high" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>HIGH</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_low" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>LOW</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_max" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MAX</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_min" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MIN</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_all" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>ALL</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_geofence" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>GEOFENCE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_location" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>LOCATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_none" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>NONE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#devicesettings" class="tsd-kind-icon">device<wbr>Settings</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#logger" class="tsd-kind-icon">logger</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#addgeofence" class="tsd-kind-icon">add<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#addgeofences" class="tsd-kind-icon">add<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#changepace" class="tsd-kind-icon">change<wbr>Pace</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroylocation" class="tsd-kind-icon">destroy<wbr>Location</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroylocations" class="tsd-kind-icon">destroy<wbr>Locations</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroylog" class="tsd-kind-icon">destroy<wbr>Log</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroytransistorauthorizationtoken" class="tsd-kind-icon">destroy<wbr>Transistor<wbr>Authorization<wbr>Token</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#emaillog" class="tsd-kind-icon">email<wbr>Log</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#findorcreatetransistorauthorizationtoken" class="tsd-kind-icon">find<wbr>OrCreate<wbr>Transistor<wbr>Authorization<wbr>Token</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#finish" class="tsd-kind-icon">finish</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
								<a href="backgroundgeolocation.html#finishheadlesstask" class="tsd-kind-icon">finish<wbr>Headless<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#geofenceexists" class="tsd-kind-icon">geofence<wbr>Exists</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getcount" class="tsd-kind-icon">get<wbr>Count</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getcurrentposition" class="tsd-kind-icon">get<wbr>Current<wbr>Position</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getdeviceinfo" class="tsd-kind-icon">get<wbr>Device<wbr>Info</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getgeofence" class="tsd-kind-icon">get<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getgeofences" class="tsd-kind-icon">get<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getlocations" class="tsd-kind-icon">get<wbr>Locations</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getlog" class="tsd-kind-icon">get<wbr>Log</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getodometer" class="tsd-kind-icon">get<wbr>Odometer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getproviderstate" class="tsd-kind-icon">get<wbr>Provider<wbr>State</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getsensors" class="tsd-kind-icon">get<wbr>Sensors</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getstate" class="tsd-kind-icon">get<wbr>State</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#insertlocation" class="tsd-kind-icon">insert<wbr>Location</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ispowersavemode" class="tsd-kind-icon">is<wbr>Power<wbr>Save<wbr>Mode</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onauthorization" class="tsd-kind-icon">on<wbr>Authorization</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onnotificationaction" class="tsd-kind-icon">on<wbr>Notification<wbr>Action</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#playsound" class="tsd-kind-icon">play<wbr>Sound</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ready" class="tsd-kind-icon">ready</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#registerheadlesstask" class="tsd-kind-icon">register<wbr>Headless<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removegeofence" class="tsd-kind-icon">remove<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removegeofences" class="tsd-kind-icon">remove<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removelisteners" class="tsd-kind-icon">remove<wbr>Listeners</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#requestpermission" class="tsd-kind-icon">request<wbr>Permission</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#requesttemporaryfullaccuracy" class="tsd-kind-icon">request<wbr>Temporary<wbr>Full<wbr>Accuracy</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#reset" class="tsd-kind-icon">reset</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#resetodometer" class="tsd-kind-icon">reset<wbr>Odometer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#setconfig" class="tsd-kind-icon">set<wbr>Config</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#setloglevel" class="tsd-kind-icon">set<wbr>Log<wbr>Level</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#setodometer" class="tsd-kind-icon">set<wbr>Odometer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#start" class="tsd-kind-icon">start</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#startbackgroundtask" class="tsd-kind-icon">start<wbr>Background<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#startgeofences" class="tsd-kind-icon">start<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#startschedule" class="tsd-kind-icon">start<wbr>Schedule</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stop" class="tsd-kind-icon">stop</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stopbackgroundtask" class="tsd-kind-icon">stop<wbr>Background<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stopschedule" class="tsd-kind-icon">stop<wbr>Schedule</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stopwatchposition" class="tsd-kind-icon">stop<wbr>Watch<wbr>Position</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#sync" class="tsd-kind-icon">sync</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#transistortrackerparams" class="tsd-kind-icon">transistor<wbr>Tracker<wbr>Params</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#watchposition" class="tsd-kind-icon">watch<wbr>Position</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class">
						<a href="backgroundgeolocation.html" class="tsd-kind-icon">Background<wbr>Geolocation</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class">
								<a href="backgroundgeolocation.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onactivitychange" class="tsd-kind-icon">on<wbr>Activity<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onconnectivitychange" class="tsd-kind-icon">on<wbr>Connectivity<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onenabledchange" class="tsd-kind-icon">on<wbr>Enabled<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ongeofence" class="tsd-kind-icon">on<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ongeofenceschange" class="tsd-kind-icon">on<wbr>Geofences<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onheartbeat" class="tsd-kind-icon">on<wbr>Heartbeat</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onhttp" class="tsd-kind-icon">on<wbr>Http</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onlocation" class="tsd-kind-icon">on<wbr>Location</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onmotionchange" class="tsd-kind-icon">on<wbr>Motion<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onpowersavechange" class="tsd-kind-icon">on<wbr>Power<wbr>Save<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onproviderchange" class="tsd-kind-icon">on<wbr>Provider<wbr>Change</a>
							</li>
							<li class=" tsd-kind-event tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onschedule" class="tsd-kind-icon">on<wbr>Schedule</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#accuracy_authorization_full" class="tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>FULL</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#accuracy_authorization_reduced" class="tsd-kind-icon">ACCURACY_<wbr>AUTHORIZATION_<wbr>REDUCED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_airborne" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AIRBORNE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_automotive_navigation" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>AUTOMOTIVE_<wbr>NAVIGATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_fitness" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>FITNESS</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_other" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#activity_type_other_navigation" class="tsd-kind-icon">ACTIVITY_<wbr>TYPE_<wbr>OTHER_<wbr>NAVIGATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_always" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>ALWAYS</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_denied" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>DENIED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_not_determined" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>NOT_<wbr>DETERMINED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_restricted" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>RESTRICTED</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#authorization_status_when_in_use" class="tsd-kind-icon">AUTHORIZATION_<wbr>STATUS_<wbr>WHEN_<wbr>IN_<wbr>USE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_high" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>HIGH</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_low" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOW</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_lowest" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>LOWEST</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_medium" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>MEDIUM</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_navigation" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>NAVIGATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#desired_accuracy_very_low" class="tsd-kind-icon">DESIRED_<wbr>ACCURACY_<wbr>VERY_<wbr>LOW</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_activitychange" class="tsd-kind-icon">EVENT_<wbr>ACTIVITYCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_authorization" class="tsd-kind-icon">EVENT_<wbr>AUTHORIZATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_boot" class="tsd-kind-icon">EVENT_<wbr>BOOT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_connectivitychange" class="tsd-kind-icon">EVENT_<wbr>CONNECTIVITYCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_enabledchange" class="tsd-kind-icon">EVENT_<wbr>ENABLEDCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_geofence" class="tsd-kind-icon">EVENT_<wbr>GEOFENCE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_geofenceschange" class="tsd-kind-icon">EVENT_<wbr>GEOFENCESCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_heartbeat" class="tsd-kind-icon">EVENT_<wbr>HEARTBEAT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_http" class="tsd-kind-icon">EVENT_<wbr>HTTP</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_location" class="tsd-kind-icon">EVENT_<wbr>LOCATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_motionchange" class="tsd-kind-icon">EVENT_<wbr>MOTIONCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_notificationaction" class="tsd-kind-icon">EVENT_<wbr>NOTIFICATIONACTION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_powersavechange" class="tsd-kind-icon">EVENT_<wbr>POWERSAVECHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_providerchange" class="tsd-kind-icon">EVENT_<wbr>PROVIDERCHANGE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_schedule" class="tsd-kind-icon">EVENT_<wbr>SCHEDULE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#event_terminate" class="tsd-kind-icon">EVENT_<wbr>TERMINATE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_debug" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>DEBUG</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_error" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>ERROR</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_info" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>INFO</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_off" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>OFF</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_verbose" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>VERBOSE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#log_level_warning" class="tsd-kind-icon">LOG_<wbr>LEVEL_<wbr>WARNING</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_default" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>DEFAULT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_high" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>HIGH</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_low" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>LOW</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_max" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MAX</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#notification_priority_min" class="tsd-kind-icon">NOTIFICATION_<wbr>PRIORITY_<wbr>MIN</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_all" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>ALL</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_geofence" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>GEOFENCE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_location" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>LOCATION</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#persist_mode_none" class="tsd-kind-icon">PERSIST_<wbr>MODE_<wbr>NONE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#devicesettings" class="tsd-kind-icon">device<wbr>Settings</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#logger" class="tsd-kind-icon">logger</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#addgeofence" class="tsd-kind-icon">add<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#addgeofences" class="tsd-kind-icon">add<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#changepace" class="tsd-kind-icon">change<wbr>Pace</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroylocation" class="tsd-kind-icon">destroy<wbr>Location</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroylocations" class="tsd-kind-icon">destroy<wbr>Locations</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroylog" class="tsd-kind-icon">destroy<wbr>Log</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#destroytransistorauthorizationtoken" class="tsd-kind-icon">destroy<wbr>Transistor<wbr>Authorization<wbr>Token</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#emaillog" class="tsd-kind-icon">email<wbr>Log</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#findorcreatetransistorauthorizationtoken" class="tsd-kind-icon">find<wbr>OrCreate<wbr>Transistor<wbr>Authorization<wbr>Token</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#finish" class="tsd-kind-icon">finish</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
								<a href="backgroundgeolocation.html#finishheadlesstask" class="tsd-kind-icon">finish<wbr>Headless<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#geofenceexists" class="tsd-kind-icon">geofence<wbr>Exists</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getcount" class="tsd-kind-icon">get<wbr>Count</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getcurrentposition" class="tsd-kind-icon">get<wbr>Current<wbr>Position</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getdeviceinfo" class="tsd-kind-icon">get<wbr>Device<wbr>Info</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getgeofence" class="tsd-kind-icon">get<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getgeofences" class="tsd-kind-icon">get<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getlocations" class="tsd-kind-icon">get<wbr>Locations</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getlog" class="tsd-kind-icon">get<wbr>Log</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getodometer" class="tsd-kind-icon">get<wbr>Odometer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getproviderstate" class="tsd-kind-icon">get<wbr>Provider<wbr>State</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getsensors" class="tsd-kind-icon">get<wbr>Sensors</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#getstate" class="tsd-kind-icon">get<wbr>State</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#insertlocation" class="tsd-kind-icon">insert<wbr>Location</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ispowersavemode" class="tsd-kind-icon">is<wbr>Power<wbr>Save<wbr>Mode</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onauthorization" class="tsd-kind-icon">on<wbr>Authorization</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#onnotificationaction" class="tsd-kind-icon">on<wbr>Notification<wbr>Action</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#playsound" class="tsd-kind-icon">play<wbr>Sound</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#ready" class="tsd-kind-icon">ready</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#registerheadlesstask" class="tsd-kind-icon">register<wbr>Headless<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removegeofence" class="tsd-kind-icon">remove<wbr>Geofence</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removegeofences" class="tsd-kind-icon">remove<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#removelisteners" class="tsd-kind-icon">remove<wbr>Listeners</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#requestpermission" class="tsd-kind-icon">request<wbr>Permission</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#requesttemporaryfullaccuracy" class="tsd-kind-icon">request<wbr>Temporary<wbr>Full<wbr>Accuracy</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#reset" class="tsd-kind-icon">reset</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#resetodometer" class="tsd-kind-icon">reset<wbr>Odometer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#setconfig" class="tsd-kind-icon">set<wbr>Config</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#setloglevel" class="tsd-kind-icon">set<wbr>Log<wbr>Level</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#setodometer" class="tsd-kind-icon">set<wbr>Odometer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#start" class="tsd-kind-icon">start</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#startbackgroundtask" class="tsd-kind-icon">start<wbr>Background<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#startgeofences" class="tsd-kind-icon">start<wbr>Geofences</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#startschedule" class="tsd-kind-icon">start<wbr>Schedule</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stop" class="tsd-kind-icon">stop</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stopbackgroundtask" class="tsd-kind-icon">stop<wbr>Background<wbr>Task</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stopschedule" class="tsd-kind-icon">stop<wbr>Schedule</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#stopwatchposition" class="tsd-kind-icon">stop<wbr>Watch<wbr>Position</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#sync" class="tsd-kind-icon">sync</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#transistortrackerparams" class="tsd-kind-icon">transistor<wbr>Tracker<wbr>Params</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="backgroundgeolocation.html#watchposition" class="tsd-kind-icon">watch<wbr>Position</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4NNZKTE395"></script>
<script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-4NNZKTE395');
    </script>
</body>
</html>